prisma-labs/graphqlgen

Missing Query_ prefix in graphqlgen.js input type for Query causing Flow error

geroj opened this issue · 0 comments

geroj commented

Description

There is flow error in graphqlgen.js after running graphqlgen. I am using custom input type for query and generated interface for it does not contain prefix Query_.

image

Same behavior for mutation input, where adding prefix Mutation_ helps

Right now I have to do patch after running every graphqlgen

Steps to reproduce

schema:

type License {
  jwt: String!
}

input FeatureSetWhereUniqueInput {
  key: String!
}

input LicenseWhereInput {
  featureSetList: [FeatureSetWhereUniqueInput!]!
}

type Query {
  licenseList(where: LicenseWhereInput): [License!]!
}

Then I run graphqlgen and there is error in generated file.

Expected results

image

Actual results

image

Versions

  • graphqlgen: 0.5.1
  • OS name and version: Ubuntu 18.04.2 LTS (Bionic Beaver)