Skip to content
This repository was 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

@geroj

Description

@geroj

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions