···11+---
22+'@0no-co/graphqlsp': minor
33+---
44+55+Add option named `tadaOutputLocation` to automatically write the `introspection.ts` file
+3-24
README.md
···5959 you can opt into the object notation i.e. `{ "schema": { "url": "x", "headers": { "Authorization": "y" } }}`
60606161**Optional**
6262-6362- `template` add an additional template to the defaults `gql` and `graphql`
6463- `templateIsCallExpression` this tells our client that you are using `graphql('doc')` (default: true)
6564 when using `false` it will look for tagged template literals
6665- `shouldCheckForColocatedFragments` when turned on, this will scan your imports to find
6766 unused fragments and provide a message notifying you about them (only works with call-expressions, default: true)
6867- `trackFieldUsage` this only works with the client-preset, when turned on it will warn you about
6969- unused fields within the same file. (only works with call-expressions, default: true)
7070-7171-### GraphQL Code Generator client-preset
7272-7373-For folks using the `client-preset` you can ues the following config
7474-7575-```json
7676-{
7777- "compilerOptions": {
7878- "plugins": [
7979- {
8080- "name": "@0no-co/graphqlsp",
8181- "schema": "./schema.graphql",
8282- "disableTypegen": true,
8383- "templateIsCallExpression": true,
8484- "shouldCheckForColocatedFragments": true,
8585- "trackFieldUsage": true,
8686- "template": "graphql"
8787- }
8888- ]
8989- }
9090-}
9191-```
6868+ unused fields within the same file. (only works with call-expressions, default: true)
6969+- `tadaOutputLocation` when using `gql.tada` this can be convenient as it automatically generates
7070+ an `introspection.ts` file for you, just give it the directory to output to and you're done
92719372## Tracking unused fields
9473
···6767 unused fragments and provide a message notifying you about them (only works with call-expressions, default: true)
6868- `trackFieldUsage` this only works with the client-preset, when turned on it will warn you about
6969 unused fields within the same file. (only works with call-expressions, default: true)
7070-7171-### GraphQL Code Generator client-preset
7272-7373-For folks using the `client-preset` you can ues the following config
7474-7575-```json
7676-{
7777- "compilerOptions": {
7878- "plugins": [
7979- {
8080- "name": "@0no-co/graphqlsp",
8181- "schema": "./schema.graphql",
8282- "disableTypegen": true,
8383- "templateIsCallExpression": true,
8484- "shouldCheckForColocatedFragments": true,
8585- "trackFieldUsage": true,
8686- "template": "graphql"
8787- }
8888- ]
8989- }
9090-}
9191-```
7070+- `tadaOutputLocation` when using `gql.tada` this can be convenient as it automatically generates
7171+ an `introspection.ts` file for you, just give it the directory to output to and you're done
7272+92739374## Tracking unused fields
9475