-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to push JSON Object in Array field of parse server #3846
Comments
object not found probably means that you can't access that object for write because of the ACL. Use either {useMasterKey: true} on save or the user's sessionToken. |
Hi Flovilmart, thank you for your reply. I am calling this method after succesfully login from parse. I want to apply ACL on this Object because it contains secure data. I am sharing my current code in which gameUser.save() is working fine but offer.save() is not.
|
try:
|
I got the solution, the error was with my "_id". My "_id" is in integer format and when fetching data from collection it converts my integer id to string format. When try to call save method then the id does not match in the collection, thats why getting that issue. Can you please help me why parse convert my integer id to string when fetching data. |
As this is a code related issue, and not an issue with parse-server itself, you should probably as over on stackoverflow. I don't see any _id in your code, and it seems that you have many issues, that don't point to a parse-server specific error. There's no reason why a column would change type, unless your ID column is defined as a string. |
Hi, i am trying to push or append the json object in my array field of collection but i am getting this error "error: Error generating response. ParseError { code: 101, message: 'Object not found.' } code=101, message=Object not found.". I tried add(), addUnique() and set() all these methods but get the same result.
I am sharing my cloud code.
Parse Server - 2.3.8
Nodejs - 6.10.2 Mongodb - 3.4.
Please help me where i am going wrong. How can i push my custom json objects in array field of mongodb using parse server.
The text was updated successfully, but these errors were encountered: