Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

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

Open
geroj opened this issue Apr 3, 2019 · 0 comments

Comments

@geroj
Copy link

geroj commented Apr 3, 2019

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)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant