Skip to content

Support GraphQL 16 #33

@yurchik-spb

Description

@yurchik-spb

Are you planning to add support for GraphQL 16 schema in the code generator?
For example, I'm having trouble using the @oneOf directive in the schema GraphQL 16

input TCodeFilter @oneOf {
  status: Int
  statusExt: Int
}
Cannot load graphql schema
C:\projects\workspace\node_modules\graphql-ts-client-codegen\node_modules\graphql\validation\validate.js:107
    throw new Error(errors.map(function (error) {
          ^

Error: Unknown directive "@oneOf".
    at assertValidSDL (C:\projects\workspace\node_modules\graphql-ts-client-codegen\node_modules\graphql\validation\validate.js:107:11)
    at buildASTSchema (C:\projects\workspace\node_modules\graphql-ts-client-codegen\node_modules\graphql\utilities\buildASTSchema.js:45:34)
    at buildSchema (C:\projects\workspace\node_modules\graphql-ts-client-codegen\node_modules\graphql\utilities\buildASTSchema.js:112:10)
    at C:\projects\workspace\node_modules\graphql-ts-client-codegen\dist\SchemaLoader.js:45:44
    at Generator.next (<anonymous>)
    at fulfilled (C:\projects\workspace\node_modules\graphql-ts-client-codegen\dist\SchemaLoader.js:14:58)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions