Created
April 9, 2013 23:21
-
-
Save joshtwist/5350259 to your computer and use it in GitHub Desktop.
Modifying query components
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
function read(query, user, request) { | |
var queryComponents = query.getComponents(); | |
/* | |
{ filters: null, | |
selections: [], | |
projection: null, | |
ordering: {}, | |
skip: null, | |
take: 50, | |
table: 'test', | |
context: undefined, | |
includeTotalCount: false, | |
version: 1 } | |
*/ | |
queryComponents.selections = ['propertyA', 'propertyB']; | |
queryComponents.skip = 100; | |
query.setComponents(queryComponents); | |
request.execute(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment