s3browser-frontend/codegen.yml

19 lines
495 B
YAML

overwrite: true
schema: "src/generated/schema.json"
documents: "src/**/*.graphql"
generates:
src/generated/graphql.tsx:
hooks:
afterOneFileWrite:
- yarn run eslint --fix --no-ignore src/generated/graphql.tsx
plugins:
- "typescript"
- "typescript-operations"
- "typescript-react-apollo"
- add:
content: "import ObjID from './../types/ObjID'"
config:
withHooks: true
scalars:
DateTime: string
objID: ObjID