Skip to content

Instantly share code, notes, and snippets.

@johndowns
Created January 14, 2018 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johndowns/d11bc9f3c30487308c031eab0cf54084 to your computer and use it in GitHub Desktop.
Save johndowns/d11bc9f3c30487308c031eab0cf54084 to your computer and use it in GitHub Desktop.
var collection = getContext().getCollection();
var query = 'SELECT * FROM c WHERE c.total = 0';
collection.queryDocuments(collection.getSelfLink(), query, function (error: IFeedCallbackError, resources: Array<Object>, options: IFeedCallbackOptions) {
// process results of query here
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment