Jason Baird
Posts: 0
Joined: Tue Nov 26, 2013 11:38 pm

Getting tricky over here, can I do this?

I have a collection that has just 1 column with numbers 5 - 1000 of type number and indexed. This will be used in a service type list and will populate a list or select, not sure which yet. What I'd like to do is pass an argument where I will only retrive a certain amount of them.

Psudo....

if x is = this query and get range 5 - 100
if x is = something else range 5 - 500

I'm looking for the easiest way to do it? Maybe this isn't even the best way? Suggestions would be useful.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Getting tricky over here, can I do this?

Hello! Please take a look here http://docs.appery.io/documentation/b... (Query Constraints section).

Jason Baird
Posts: 0
Joined: Tue Nov 26, 2013 11:38 pm

Getting tricky over here, can I do this?

Ok yeah, I get that part. But basically I want to do....

Psudo...

{"column1": value between 5 to 100}

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Getting tricky over here, can I do this?

Hi Jason,

Add request parameter 'where' with the following value please:pre{"column1":{"$gte":"5", "$lt":"100"}}/pre

Return to “Issues”