Locations of multiple schema files #5055
-
Greetings. Thank you for the huge efforts here. I am learning to write custom plugins. Pleas, help me. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @geekox86 ! I think that doing something like that should work: schema:
- "./src/**/*.graphql":
includeSources: true And then you can use the Can you please try that and let me know how it works? fyi @ardatan |
Beta Was this translation helpful? Give feedback.
Hi @geekox86 !
We recently found that we need something similar for this PR. We added
includeSources: boolean
flag tographql-tools
loaders, and it should already be available for you to use.I think that doing something like that should work:
And then you can use the
GraphQLSchema
and accessschema.extensions.sources
to get the sources that created the schema.Can you please try that and let me know how it works?
fyi @ardatan