Hi @antek ,
Also if you want to get a fully typed experience in you code (both server side and client side). You can use codegen tools to generate typed mutations/queries from GraphQL files and you Parse Server Auto Generated GraphQL Schema.
You can see an example here: https://github.com/Moumouls/parse-next-mono-starter/tree/master/packages/back
Steps:
- Start your server
- use a tool like “get-graphql-schema” to extract a
schema.graphql
from your server
- create some
.graphql
files with some queries/mutations
- run the codegen
- then you have a graphql client that you can use on server side with master key to perform fully typed operations
GraphQL is a perfect API system to generate some types. Using GraphQL Codegen to generate mutations/queries with master key in you cloud code, allow a fully typed experience with Parse Server.
The codegen architecture is also usable on front end (without master key obviously)