Skip to content

Instantly share code, notes, and snippets.

@joshtwist
Created April 9, 2013 23:21
Show Gist options
  • 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