-
Hello, In our service java spring boot service we want to have: I am searching for a npm module for combining multiple .graphqls files into one through a CLI command. It should have CLI commands because we want the combining .graphqls files to be executed in a script in the package.json file of the service. Can you clarify this? And there is a CLI command for the upper use case, can you provide an example? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
CLI is something environment specific(Node.js, Deno or Bun) etc. GraphQL Tools is a set of helper environment agnostic JavaScript packages. You can write a small script in JavaScript on your own by using our existing documentation and save it to the disk. Currently we are not planning to introduce a CLI for that. or You can use GraphQL Code Generator's schema-ast plugin that takes multiple schema sources and outputs one big merged SDL; |
Beta Was this translation helpful? Give feedback.
CLI is something environment specific(Node.js, Deno or Bun) etc. GraphQL Tools is a set of helper environment agnostic JavaScript packages. You can write a small script in JavaScript on your own by using our existing documentation and save it to the disk. Currently we are not planning to introduce a CLI for that.
or
You can use GraphQL Code Generator's schema-ast plugin that takes multiple schema sources and outputs one big merged SDL;
https://the-guild.dev/graphql/codegen/plugins/other/schema-ast