Created
June 24, 2009 21:41
-
-
Save sudara/135533 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
# Grab all users | |
q = SC.Query.create({recordType:Listenapp.User}); | |
var users = Listenapp.alonetone.findAll(q); | |
# Ok, now only get users starting with S | |
filter = SC.Query.create({recordType:Listenapp.User, conditions: 'name STARTS_WITH_S'}); | |
var filtered_users = Listenapp.alonetone.findAll(filter); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment