Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $http.post('http://localhost:8529/_api/cursor', {
- query: `
- FOR doc IN collection
- FILTER doc.color = @color
- RETURN doc
- `,
- bindVars: {color: 'blue'}
- })
- .then(successCallback);
- var aql = arangojs.aql;
- var color = 'blue';
- $http.post('http://localhost:8529/_api/cursor', aql`
- FOR doc IN collection
- FILTER doc.color = ${color}
- RETURN doc
- `)
- .then(successCallback);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement