Skip to content

Accept subdocuments keys ("object.subobject"), to allow atomic updates of an object field. #567

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

Merged
merged 4 commits into from
Feb 26, 2016

Conversation

IlyaDiallo
Copy link
Contributor

The validateField function checks the key/type against the schema.
For objects fields, it's valid to set subdocuments with the dot notation syntax.

This patch changes the validateField test to allow this syntax.

@facebook-github-bot
Copy link

@IlyaDiallo updated the pull request.

…rver on is already in use. (reverted from commit 7da7c43)
@facebook-github-bot
Copy link

@IlyaDiallo updated the pull request.

gfosco added a commit that referenced this pull request Feb 26, 2016
Accept subdocuments keys ("object.subobject"), to allow atomic updates of an object field.
@gfosco gfosco merged commit 791c551 into parse-community:master Feb 26, 2016
@gfosco
Copy link
Contributor

gfosco commented Feb 26, 2016

Looks good to me. 👍

IlyaDiallo added a commit to IlyaDiallo/parse-server that referenced this pull request Jun 7, 2017
natanrolnik pushed a commit that referenced this pull request Jun 14, 2017
…567) (#3912)

* The 'beforeSave' trigger breaks requests using the dot notation for subdocuments (cf #567)

* Convert 'var' to 'let' / 'const'

* Convert 'var' to 'const'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants