SaveOrUpdateDocumentByKeyValue with owner query

0 votes

When using SaveOrUpdateDocumentByKeyValue() from StorageService I would like to query on the owner field that I previously set with App42API.SetLoggedInUser(myUserId) ;

 

I tried key owner/Owner/_owner and value myUserId but nothing matches and new documents are inserted instead always. How to do this without adding myUserId as another but identical field in the document?

asked Sep 3, 2015 in App42 Cloud API-BaaS by info (10 points)

1 Answer

0 votes
Hello Info,

At the time of creating query based on owner, you need to pass "_$owner.owner" as a key and value as your username name on which you need to create your query. Please change the key and let me know if it helps.

Regards,

Himanshu Sharma
answered Sep 3, 2015 by hs00105 (2,005 points)
That worked - thank you!
Great to know that your query has been resolved, please  let us know if you need any other help from our side.

Regards,
Himanshu Sharma
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...