Skip to content
Discussion options

You must be logged in to vote

Ah, the documents field is required to get the hooks

overwrite: true
schema: 'http://localhost:8080/graphql'
documents: 'frontend/src/ApolloClient/*/*'
generates:
  backend/src/generated/graphql.ts:
    plugins:
      - typescript
      - typescript-resolvers
    hooks:
      afterOneFileWrite:
        - prettier --write
  frontend/src/generated/graphql.ts:
    plugins:
      - typescript
      - typescript-operations
      - typescript-react-apollo
    config:
      withHooks: true
    hooks:
      afterOneFileWrite:
        - prettier --write

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ardatan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant