Skip to content

Create custom data type | ParseConfig | Parse.Object #5157

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
grosscorporation opened this issue Oct 31, 2018 · 2 comments
Closed

Create custom data type | ParseConfig | Parse.Object #5157

grosscorporation opened this issue Oct 31, 2018 · 2 comments

Comments

@grosscorporation
Copy link

Is it possible to create a custom data type such as:

"currency": {
"type": "Currency"
},
"number": {
"type": "Number"
},
"phone": {
"type": "Phone"
}

@flovilmart
Copy link
Contributor

It is not. If you with to validate your data, use beforeSave / afterSave hooks. That’s what they are designed for.

@flovilmart
Copy link
Contributor

What’s to explain and how it is related to the issue you’ve opened?

The limitations part may not be true, but true config being stored in a single mongodb document, it will be subject to the max document size of your mongo database which varies across versions

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

No branches or pull requests

1 participant