Skip to content

Instantly share code, notes, and snippets.

@odoe
Created November 2, 2015 18:39
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 odoe/b2d045caf10aaeea613b to your computer and use it in GitHub Desktop.
Save odoe/b2d045caf10aaeea613b to your computer and use it in GitHub Desktop.
var filter = new userAPI.Filter();
var validUsers = filter.gt('id', 3).lt('id', 8);
var collection = userAPI.filter(validUsers).sort('username');
collection.fetch().then(function(results) {
console.log(results);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment