meteorrn / meteor-react-native

Meteor client for React Native matching Meteor Spec
https://guide.meteor.com/react-native.html
Other
59 stars 31 forks source link

Collection.update does not work on the server #92

Closed varunwyest closed 1 year ago

varunwyest commented 2 years ago

Describe the bug When we use the Collection.update method it is taking a string as the ID which updates it perfectly on the local but is not able to update the server with the server with that id.

Any suggestions on how to update an object

TheRealNate commented 2 years ago

Hi @varunwyest, could you confirm that this works in your web client code? Your server must be configured with allow deny for this to work.

varunwyest commented 2 years ago

Yes, I tested it thoroughly in the meteor app as well outside of react native the behaviour is exactly the same when we dont use the Object ID. Without the object id, just passing in the string it does not update document, but gives no error.

When using the Object ID it updates the data perfectlty. I can try to take a stab at updating this code if you are okay with it. I just dont want to fork and create our own as this will be helpful to everybody.

sdhimanwyest commented 2 years ago

+1

TheRealNate commented 2 years ago

@varunwyest just want to clarify, are you saying {_id:"..."} is working (object with _id field)?

github-actions[bot] commented 1 year ago

Closing this issue due to no activity. Feel free to reopen.

jankapunkt commented 1 year ago

If this issue persist it's likely a minimongo issue. Feel free to reopen.