Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

projection not working if _id field is excluded

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

projection not working if _id field is excluded

Hello Dongzhi,

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

projection not working if _id field is excluded

Hello,

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

projection not working if _id field is excluded

Hello -

This should be fixed now, please check.

Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

projection not working if _id field is excluded

It works fine, now, thanks Team!

Return to “Issues”