Skip to content

Instantly share code, notes, and snippets.

@joshtwist
Created April 9, 2013 23:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save joshtwist/5350259 to your computer and use it in GitHub Desktop.
Save joshtwist/5350259 to your computer and use it in GitHub Desktop.
Modifying query components
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