Page 1 of 1

Strange test request problem.

Posted: Wed Jun 19, 2013 3:13 pm
by reformstudios

I'm having difficulty getting a where query to work.
When testing one of my own columns it works, ie;

{'Era':{$exists:true}}

Which returns :-

[
{
"Era":"2009",
"createdAt":"2013-06-17 23:11:57.149",
"id":"51bf97bde4b03cd897fb200f",
"_updatedAt":"2013-06-18 19:18:19.705"
}
]

but {'_id':{$exists:true}}
returns :-
{
"status":"400 Bad Request",
"url":"https://api.appery.io/rest/1/db/colle...",
"response":{
"code":"DBSQ210",
"description":"Invalid object ID: 'true'"
}
}

Any ideas why the second line fails?


Strange test request problem.

Posted: Wed Jun 19, 2013 3:39 pm
by reformstudios

More strangely, this returns an empty array :-
{'_Id':{$exists:true}}

Response :
[

]

So, In the previous example the response shows that the id field is spelt "id", yet the call doesn't work unless its spelt "Id", but even then the response is incorrect as no records are returned.

Does anyone know what I might be doing wrong?
Thanks!


Strange test request problem.

Posted: Wed Jun 19, 2013 3:45 pm
by Kateryna Grynko

Hi,

We'll take a look.


Strange test request problem.

Posted: Wed Jun 19, 2013 5:13 pm
by Kateryna Grynko

It's a bug, will be fixed. Thank you for contacting us!


Strange test request problem.

Posted: Thu Jun 20, 2013 9:52 am
by reformstudios

Thanks for looking into it. Do you have an eta on a fix?
Thanks
p.


Strange test request problem.

Posted: Thu Jun 20, 2013 10:43 am
by Maryna Brodina

Hello! We've reported this problem, but unfortunately for now no eta...