Skip to content

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

Merged
gfosco merged 4 commits into
parse-community:masterfrom
IlyaDiallo:master
Feb 26, 2016
Merged

gfosco merged 4 commits into
parse-community:masterfrom
IlyaDiallo:master

Conversation

@IlyaDiallo

Copy link
Copy Markdown
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
Copy Markdown

@IlyaDiallo updated the pull request.

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

Copy link
Copy Markdown

@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

gfosco commented Feb 26, 2016

Copy link
Copy Markdown
Contributor

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