We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It's not possible to udpate a sub-document that does not exist like this.
{ "id": "foo" }
Table.update({id: 'foo'}, {$set: {'foo.bar': 'baz'}}).exec();
It has to be done like this
Table.update({id: 'foo'}, {$set: {foo: {bar: 'baz'}}}).exec();
But this might override other properties inside the foo object.
foo
{ "id": "foo", "foo": { "bar": "bar", "baz": "baz" } }
will result in
{ "id": "foo", "foo": { "bar": "baz" } }
The text was updated successfully, but these errors were encountered:
I think it should be possible to do this with the if_not_exists
if_not_exists
Sorry, something went wrong.
No branches or pull requests
It's not possible to udpate a sub-document that does not exist like this.
It has to be done like this
But this might override other properties inside the
foo
object.will result in
The text was updated successfully, but these errors were encountered: