Graphql-code-generator: --clientSchema and --schema don't recognize .graphqls as graphql document

Created on 8 Nov 2018  路  1Comment  路  Source: dotansimha/graphql-code-generator

Describe the bug
gql-gen tries to load up .graphqls document as a javascript file.

Loading GraphQL schema object, text, ast, or introspection json from JavaScript ES6 export: ./src/app/graphql/schema.graphqls

To Reproduce
Steps to reproduce the behavior:

  1. Use a valid graphql schema document as .graphqls file.
  2. Run the following command: gql-gen --watch --schema 'src/**/*.graphqls' --template graphql-codegen-apollo-angular-template --out './src/app/graphql/queries.ts' './src/**/*.graphql'

Expected behavior
Expected valid types to be generated in queries.ts

Environment:

  • OS: alpine
  • Codegen: 0.13.0
  • Node: 10.11

Additional context
Add any other context about the problem here.

bug core waiting-for-release

Most helpful comment

Fixed in 0.14.0 馃帀

>All comments

Fixed in 0.14.0 馃帀

Was this page helpful?
0 / 5 - 0 ratings