Created
January 15, 2018 07:09
-
-
Save johndowns/cab0600d49365389aa7ddc0e8262c082 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var collection = getContext().getCollection(); | |
var total = 0; | |
var query: IParameterizedQuery = { | |
query: "SELECT * FROM c WHERE c.total = @total", | |
parameters: [ | |
{ name: "@total", value: total } | |
] | |
}; | |
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