Page 1 of 1

projection not working if _id field is excluded

Posted: Wed Jul 08, 2015 1:59 pm
by Dongzhi Yang7528784

Hi Support team,

I am trying to use proj={"field":1,"_id":0} in my Collection.query() call in server code. But it throws error:

----------------------

Error code SCSE014: Script execution failed. Details have been added to Trace tab.
Script sendRequest: Error ( @ 37 : 18 ) - throw e;

-----------------------

However , if I remove "id":0, the query works fine.
Aparently, it doesn't allow specifying "id":0 in projection. This is different from how MongoDB works. Is this a bug or there is specific reason appery wants it to work this way?

Thanks & Regards

Dongzhi


projection not working if _id field is excluded

Posted: Sat Jul 11, 2015 1:27 am
by Alena Prykhodko

Hello Dongzhi,

Let us check this more, we'll post a reply as soon as have update here.
This will take some time.


projection not working if _id field is excluded

Posted: Wed Jul 15, 2015 11:37 am
by Alena Prykhodko

Hello,

We have reported a bug, we will let you know as soon as it's fixed.


projection not working if _id field is excluded

Posted: Sun Aug 02, 2015 2:31 pm
by Illya Stepanov

Hello -

This should be fixed now, please check.


projection not working if _id field is excluded

Posted: Sat Aug 08, 2015 4:54 am
by Dongzhi Yang7528784

It works fine, now, thanks Team!