-
-
Notifications
You must be signed in to change notification settings - Fork 598
Parse.Schema required fields and defaultValues #961
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
Conversation
Closes: #930 Requires Parse Server 3.7.0+ Feature: parse-community/parse-server#5835 I added a FieldOption to addField and its counter parts. This will allow for future options like uppercase / lowercase for example. I keep getting a schema mismatch when I use dates and pointers. @davimacedo Maybe you know why?
Codecov Report
@@ Coverage Diff @@
## master #961 +/- ##
==========================================
+ Coverage 91.9% 91.94% +0.04%
==========================================
Files 54 54
Lines 5063 5077 +14
Branches 1134 1142 +8
==========================================
+ Hits 4653 4668 +15
+ Misses 410 409 -1
Continue to review full report at Codecov.
|
@acinader @davimacedo How does this look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm.
src/__tests__/ParseSchema-test.js
Outdated
@@ -69,6 +83,30 @@ describe('ParseSchema', () => { | |||
done(); | |||
}); | |||
|
|||
it('can create schema fields required and default values', (done) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since this doesn't require any async, you could remove the done from the func declaration and remove the end done().
Closes: #930
Requires Parse Server 3.7.0+
Feature: parse-community/parse-server#5835
I added a FieldOption to addField and its counter parts. This will allow for future options like uppercase / lowercase for example.