Help needed with where clause - retrieve data for logged in user
Hi Louis,
You cannot return one field. Instead, you can remove the fields you don't need from the response.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hi Louis,
You cannot return one field. Instead, you can remove the fields you don't need from the response.
Thanks Katya.
Hi Maryna/Katya,
When I try Maryna's query above in Test, with a specific user id, it works great. However when I try to make the user id dynamic by using a local variable in the where clause (as javascript) it doesn't. Here is what I have:
' return {"group": {"$inQuery": {"active": true}}, "member": {"$inQuery": {"_id": "'+value+'"}}}';
I am concerned that the last bit "'+value+'" may be wrong. Is the syntax wrong? When I try to debug I just get incorrect query.
Please ignore my question above - I spotted my error.