If your project uses multiple GraphQL schemas, define them using a schemas array within the gql.tada/ts-plugin configuration. Each schema object requires a name (used for internal identification and error messages), a schema path/URL, and a tadaOutputLocation.
{
"compilerOptions": {
"strict": true,
"plugins": [
{
"name": "gql.tada/ts-plugin",
"schemas": [
{
"name": "your-schema-1",
"schema": "./schema-1.graphql",
"tadaOutputLocation": "./src/graphql-env-1.d.ts"
},
{
"name": "your-schema-2",
"schema": "./schema-2.graphql",
"tadaOutputLocation": "./src/graphql-env-2.d.ts"
}
]
}
]
}
}