Skip to content

Combine a couple of .graphqls files in one .graphqls file through a CLI command #5370

Closed Answered by ardatan
monikams asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ardatan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants