overwrite: true
generates:
  # Generate types for chat
  src/graphql/schema/chat.gen.ts:
    schema: 'https://chat.discours.io'
    plugins:
      - 'typescript'
      - 'typescript-operations'
      - 'typescript-urql'
    config:
      skipTypename: true
      useTypeImports: true
      outputPath: './src/graphql/types/chat.gen.ts'
      # namingConvention: change-case#CamelCase # for generated types

  # Generate types for core
  src/graphql/schema/core.gen.ts:
    schema: 'https://core.discours.io'
    plugins:
      - 'typescript'
      - 'typescript-operations'
      - 'typescript-urql'
    config:
      skipTypename: true
      useTypeImports: true
      outputPath: './src/graphql/types/core.gen.ts'
      # namingConvention: change-case#CamelCase # for generated types
hooks:
  afterAllFileWrite:
    - prettier --ignore-path .gitignore --write --plugin-search-dir=. src/graphql/schema/*.gen.ts
