Skip to content
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

Delete field function in Schema.js #353

Merged
merged 5 commits into from
Feb 11, 2016

Conversation

drew-gross
Copy link
Contributor

This will be necessary for PUT /schemas/:classname

}

//Don't allow deleting the default fields.
if (!fieldNameIsValidForClass(fieldName, className)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can chain this in a huge promise all together and reject in few of them?
Also, you'll be able to throw the error there in this case. Doesn't really matter much though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That seems plausible. Next time I'm writing validation code I'll try that style and see if I like it better.

@nlutsenko nlutsenko assigned drew-gross and unassigned nlutsenko Feb 11, 2016
drew-gross added a commit that referenced this pull request Feb 11, 2016
Delete field function in Schema.js
@drew-gross drew-gross merged commit 6294162 into parse-community:master Feb 11, 2016
@drew-gross drew-gross deleted the delete-field branch April 5, 2016 21:52
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.

2 participants