You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't figure out how to reproduce the issue. I tried the following steps, but could not reproduce it. Please provide the exact steps for reproduction.
I defined the following in the schema.graphqls file of gqlgen.
typeMutation {
deleteAccount: Boolean
}
I created a React.js project and used graphql-code-generator to execute graphql-codegen --config codegen.ts. This generated a gql.ts file, which looks like this.
/** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */exportfunctiongraphql(source: "\n mutation DeleteAccount {\n deleteAccount\n }\n"): (typeofdocuments)["\n mutation DeleteAccount {\n deleteAccount\n }\n"];
It doesn't seem to have parentheses.
What is wrong with my reproduction steps? Could you please provide the correct library name, file names, etc.?
What happened?
It's generating an empty argument operation. Not sure if this complies with GraphQL standard, but it breaks graphql-code-generator.
What did you expect?
Operation with no arguments shouldn't have empty parenthesis.
Minimal graphql.schema and models to reproduce
versions
v0.17.38
The text was updated successfully, but these errors were encountered: