parse-community / docs

Parse Platform docs
https://docs.parseplatform.org
Other
313 stars 518 forks source link

docs: add defined schema docs #863

Closed Moumouls closed 1 year ago

Moumouls commented 2 years ago

Add defined schema docs.

See #872

Moumouls commented 2 years ago

@sadortun if you want to take a look, feel to suggest some commit changes from github UI 🙂

Moumouls commented 2 years ago

@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 :)

Moumouls commented 2 years ago

@sadortun i added bold, @mtrezza since Parse V5 was released, what do you think about merging this one ?

stephannielsen commented 2 years ago

Maybe not the best place to ask but as there is no official documentation available yet:

mtrezza commented 2 years ago

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.

Moumouls commented 2 years ago

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.

https://community.parseplatform.org/t/type-arrayresult-must-have-a-selection-of-subfields-error/847/2?u=moumouls

for example ... on MyPointerClass { id aField}

stephannielsen commented 2 years ago

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.

RahulLanjewar93 commented 2 years ago

Hey, just had a quick question, since the documentation isn't updated yet. Can we have unique indexes according to the recent merge?

Thanks.

mtrezza commented 2 years ago

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.

Moumouls commented 1 year ago

@mtrezza any chance to update your comments using the commit suggestion feature ? then I'll be happy to apply all your suggestions 🚀

Moumouls commented 1 year ago

closing in favor of https://github.com/parse-community/docs/pull/912