Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save KellyRice/2230246 to your computer and use it in GitHub Desktop.
Save KellyRice/2230246 to your computer and use it in GitHub Desktop.
dave
class Todos extends KinveyCollection
url: ->
url = "http://test.kinvey.com/appdata/#{kinvey_app_key}/todos"
// if there is a filter string
if @filterString
// build the regex query - queries are JSON objects
query = JSON.stringify( content: { $regex: @filterString } )
// make sure we URI encode the query!
url += "?query=#{encodeURIComponent( query )}"
// Return the final result
url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment