GraphQL Implementation
This draft PR represents thoughts related to creating a GraphQL search implementation in tiled. I'm creating the PR very early in development to maximize feedback.
This uses the Ariadne graphql package, which focuses on "schema first" development.
Currently, this only supports a "hello world" endpoint at /graphql.
The general theory is that this will always support a single endpoint into which Tree-specific schemas and code can be registered at startup. At app startup, the code in graphql.py will be notified of the root tree object. With that, it will interrogate top level nodes for registered queries. A gqlquery will provide:
- a query part (possibly a graphql
fragment - one or more resolver iplementations
In this way, developers who register tiled a Tree will be able to optionally specify a graphql schema (string) and implementation (python).
I like this approach. It fits in well with our existing patterns.
Power-cycled to re-run CI now that docs build has been fixed on main.
I'm going to close this as stale. I am still interested in understanding use cases for GraphQL in Tiled.