Hello,
To run the GraphQL schema generation in a build step, where I can’t start dgraph, I added a quick-and-dirty CLI to a fork: Add CLI that runs the schemagen code by solsson · Pull Request #1 · solsson/dgraph · GitHub
What are alternative ways to do this?
- Using schemagen.go through a library that’s published like gqlparser · pkg.go.dev?
- A subcommand to the single binary? Like
dgraph graphql schemagen
- Avoid reliance on the generated schema at build time?
regards
Staffan