graphql-transform-schema icon indicating copy to clipboard operation
graphql-transform-schema copied to clipboard

TS Type error

Open jasonkuhrt opened this issue 6 years ago • 0 comments

source/Schema/index.ts:14:43 - error TS2345: Argument of type 'import("/Users/jasonkuhrt/projects/personal/gql-examples/prisma-stitch/node_modules/@types/graphq...' is not assignable to parameter of type 'import("/Users/jasonkuhrt/projects/personal/gql-examples/prisma-stitch/node_modules/apollo-link/n...'.
  Types of property 'astNode' are incompatible.
    Type 'Maybe<SchemaDefinitionNode>' is not assignable to type 'SchemaDefinitionNode | undefined'.
      Type 'null' is not assignable to type 'SchemaDefinitionNode | undefined'.

14 const transformedSchema = transformSchema(schema, {})
                                             ~~~~~~

Guessing the issue here might be that my graphql-tools is not compatible with the current version of graphql-transform-schema.

jasonkuhrt avatar Jun 28 '18 02:06 jasonkuhrt