Skip to content

Commit

Permalink
docs: fixed JSON syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
GauBen authored Sep 30, 2024
1 parent bce10e3 commit cad07b7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions website/reference/config-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Their configurations are part of the TypeScript plugin entry:
"plugins": [
{
"name": "gql.tada/ts-plugin",
"schema": "./schema.graphql"
"tadaOutputLocation": "./src/graphql-env.d.ts",
"schema": "./schema.graphql",
"tadaOutputLocation": "./src/graphql-env.d.ts"
}
]
}
Expand All @@ -43,13 +43,13 @@ to create a `schemas` array.
"schemas": [
{
"name": "your-schema-1",
"schema": "./schema-1.graphql"
"tadaOutputLocation": "./src/graphql-env-1.d.ts",
"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",
"schema": "./schema-2.graphql",
"tadaOutputLocation": "./src/graphql-env-2.d.ts"
}
]
}
Expand Down Expand Up @@ -320,7 +320,7 @@ global features for the `gql.tada` CLI and the TypeScript plugin.
"plugins": [
{
"name": "gql.tada/ts-plugin",
"schema": "./schema.graphql"
"schema": "./schema.graphql",
"tadaOutputLocation": "./src/graphql-env.d.ts",
"trackFieldUsage": true // [!code ++]
}
Expand Down Expand Up @@ -385,7 +385,7 @@ or report the problematic code pattern to us in an issue.
"plugins": [
{
"name": "gql.tada/ts-plugin",
"schema": "./schema.graphql"
"schema": "./schema.graphql",
"tadaOutputLocation": "./src/graphql-env.d.ts",
"shouldCheckForColocatedFragments": true // [!code ++]
}
Expand Down

0 comments on commit cad07b7

Please sign in to comment.