Closed Moumouls closed 1 year ago
@sadortun if you want to take a look, feel to suggest some commit changes from github UI 🙂
@sadortun @mtrezza requested changes performed. Feel free to use the Github commit suggestion feature if you some new changes suggestions, then i can apply easily your changes :)
@sadortun i added bold, @mtrezza since Parse V5 was released, what do you think about merging this one ?
Maybe not the best place to ask but as there is no official documentation available yet:
Array
as type in the schema, anything is accepted as array content.beforeMigration
and afterMigration
hooks. I am not sure how I could leverage them to migrate data.Thanks for the feedback to the docs, maybe @Moumouls can add this to the PR? To your first point, the best place to ask is our community forum.
thanks, @stephannielsen for your feedback I'll quickly answer to your question. Parse is not currently able to type the content of Array
. Anything could be stored in the Array
. You can use the beforeSave Parse Cloud hook to prevent users saving anything other than the desired pointers.
If you use the GraphQL API. You can use the "inline fragment" graphql feature to automatically get data from the pointer array.
for example ... on MyPointerClass { id aField}
Thanks @Moumouls and @mtrezza for your quick replies.
I already expected that Parse can't type array fields and that triggers would allow me to validate incoming data. Thanks for the quick confirmation.
Hey, just had a quick question, since the documentation isn't updated yet. Can we have unique indexes according to the recent merge?
Thanks.
If anyone wants to pick up and finish this PR (see the review comments, just grammar and style corrections), please feel free to do so, so we can merge this chapter about defined schema into the docs. You will probably have to open a new PR, then we can close this one.
I have added a description to this PR and created issue #872 to track this.
@mtrezza any chance to update your comments using the commit suggestion feature ? then I'll be happy to apply all your suggestions 🚀
closing in favor of https://github.com/parse-community/docs/pull/912
Add defined schema docs.
See #872