This is the schema of the GraphQL API exposed by the Mintter Daemon.
It contains some Go-specific directives, and eventually we might want to split the schema into different files, so it's easier to work with.
Eventually we'd probably want to do some transformation to strip away some directives, or even generate some types on the fly and what not, which could make the final schema easier to consume by clients, generate documentation, etc.
On the configured HTTP port the Daemon exposes two routes:
/playground
- the GraphQL Playground UI. Useful to test the API in the browser./graphql
- the actual API endpoint for GraphQL.
Based on the GraphQL Schema we generate all the Typescript Types using graphql-codegen.
The above command generates a types.d.ts
file in
frontend/packages/shared/src/client/.generated
(checkout
codegen.yml for more info about the config.)