It would be nice to provide plugins to help with common workflows. There are many ways to use GraphQL and it is not yet clear what a general-purpose plugin for Serene should look like. This issue is for that discussion.
The following are open questions:
- What input formats should be accepted?
- definitely - introspection schema EDN
- probably - introspection schema JSON
- maybe - GraphQL SDL - requires parsing and knowledge of custom type system directives
- maybe - Lacinia EDN - requires an additional dependency
- What input sources should be accepted?
- definitely - JSON or EDN file path string
- definitely - URL to be fetched via HTTP - this also requires setting request options
- maybe - dynamic source like a var/symbol/function that returns the schema
- What output options should be considered?
- Hopefully we can just output
s/def forms to a file and call it a day.
- What should the plugin interfaces look like?
It would be nice to provide plugins to help with common workflows. There are many ways to use GraphQL and it is not yet clear what a general-purpose plugin for Serene should look like. This issue is for that discussion.
The following are open questions:
s/defforms to a file and call it a day.