2021-08-27 08:10:41 +00:00
|
|
|
overwrite: true
|
2022-03-09 08:56:55 +00:00
|
|
|
schema: ./introspection.json
|
2021-08-27 08:10:41 +00:00
|
|
|
generates:
|
2022-03-09 08:56:55 +00:00
|
|
|
./src/graphql/fragmentTypes.generated.ts:
|
2021-08-27 08:10:41 +00:00
|
|
|
plugins:
|
2022-03-09 08:56:55 +00:00
|
|
|
- add:
|
|
|
|
content: /* eslint-disable */
|
2021-08-27 08:10:41 +00:00
|
|
|
- fragment-matcher
|
|
|
|
config:
|
|
|
|
minify: false
|
2022-02-21 13:32:38 +00:00
|
|
|
apolloClientVersion: 3
|
2022-03-09 08:56:55 +00:00
|
|
|
./src/graphql/typePolicies.generated.ts:
|
2022-02-21 13:32:38 +00:00
|
|
|
plugins:
|
2022-03-09 08:56:55 +00:00
|
|
|
- add:
|
|
|
|
content: /* eslint-disable */
|
2022-02-21 13:32:38 +00:00
|
|
|
- typescript-apollo-client-helpers
|
2022-03-09 08:56:55 +00:00
|
|
|
./src/graphql/types.generated.ts:
|
|
|
|
documents:
|
|
|
|
- ./src/**/queries.ts
|
|
|
|
- ./src/**/mutations.ts
|
|
|
|
- ./src/**/fragments/*.ts
|
|
|
|
- ./src/searches/*.ts
|
|
|
|
config:
|
|
|
|
nonOptionalTypename: true
|
|
|
|
avoidOptionals:
|
|
|
|
field: true
|
|
|
|
inputValue: false
|
|
|
|
object: false
|
|
|
|
defaultValue: false
|
|
|
|
namingConvention:
|
|
|
|
enumValues: change-case-all#upperCase
|
|
|
|
onlyOperationTypes: true
|
|
|
|
plugins:
|
|
|
|
- add:
|
|
|
|
content: /* eslint-disable */
|
|
|
|
- typescript
|
|
|
|
- typescript-operations
|
|
|
|
./src/graphql/hooks.generated.ts:
|
|
|
|
documents:
|
|
|
|
- ./src/**/queries.ts
|
|
|
|
- ./src/**/mutations.ts
|
|
|
|
- ./src/**/fragments/*.ts
|
|
|
|
- ./src/searches/*.ts
|
|
|
|
preset: import-types
|
|
|
|
presetConfig:
|
|
|
|
typesPath: ./types.generated
|
|
|
|
config:
|
|
|
|
withHooks: true
|
|
|
|
apolloReactHooksImportFrom: "@saleor/hooks/graphql"
|
|
|
|
plugins:
|
|
|
|
- add:
|
|
|
|
content: /* eslint-disable */
|
|
|
|
- typescript-react-apollo
|