Multiple Introspection #8180
-
Is it possible to generate two introspection? my project setup uses two different schema. one is for public consumer and the other one is for admin. I managed to generate the two schema |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @davidkhierl, it is not well documented, but the
The following would work: schema:
- http://localhost:3000/graphql:
headers:
Authorization: YOUR-TOKEN-HERE
- http://localhost:3001/graphql:
headers:
Authorization: YOUR-TOKEN-HERE or schema:
- http://localhost:3000/graphql
- http://localhost:3001/graphql Also, Let me know if it helped. |
Beta Was this translation helpful? Give feedback.
Hi @davidkhierl,
it is not well documented, but the
schema
option of yourcodegen.yml
can take an array of multiple schemas:The following would work:
or
Also,
schema
can be specified both at the root level and output-file level: https://www.graphql-code-generator.com/docs/config-reference/schema-field#mul…