timqian / gql-generator

Generate queries from graphql schema, used for writing api test.
MIT License
375 stars 93 forks source link

This tool generates queries with empty parentheses #75

Open VityaSchel opened 1 year ago

VityaSchel commented 1 year ago

I have a query that takes no arguments, it should look like this:

query me {
  me {
    // fields
  }
}

however it looks like this after processing by this lib (making it impossible to use generated documents further in codegen.yml in graphql-codegen):

query me() {
  me{
    // fields
  }
}