Skip to content

How to set required and defaultValue in Schema? #930

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

Closed
kyawswarthwin opened this issue Sep 20, 2019 · 1 comment · Fixed by #961
Closed

How to set required and defaultValue in Schema? #930

kyawswarthwin opened this issue Sep 20, 2019 · 1 comment · Fixed by #961
Labels
type:feature New feature or improvement of existing feature

Comments

@kyawswarthwin
Copy link

With parse dashboard we can set required and defaultValue. I want to known how can I set those value with Parse.Schema in js sdk.

@davimacedo
Copy link
Member

There is currently no support to set required and defaultValue though the JS SDK. Would you be willed to help tackling this?

dplewis added a commit that referenced this issue Oct 16, 2019
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?
dplewis added a commit that referenced this issue Oct 16, 2019
* Parse.Schema required fields and defaultValues

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?

* improve coverage

* fix date and pointer fields

* print tests

* fix utc date test

* Documentation

* nit test
@mtrezza mtrezza added type:feature New feature or improvement of existing feature and removed type:improvement labels Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or improvement of existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants