Tommy B
Posts: 0
Joined: Sat Sep 15, 2012 3:39 am

Limit service return by date

Sorry that did not work. Please note that "_createdAt" and "userID" are the two columns that I am trying to filter on.

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

Limit service return by date

Hi Tommy! Please try the following request:
codereturn '{"_createdAt": {"$gte": {"$date": "' + s1 + '"}, "$lte": {"$date": "' + e1 + '"}} , "userID":"' + uid + '"}';/code
we tested, it works.

Tommy B
Posts: 0
Joined: Sat Sep 15, 2012 3:39 am

Limit service return by date

Sorry its not working. If you want to check the app its "airmon" the user and pass are user1 and password. the page is called eventSearch.

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

Limit service return by date

We'll check and let you know.

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

Limit service return by date

In request we suggested there is "userID" column, but in your collection it's called "userId". You need to change it in JavaScript code.

Return to “Issues”