timqian / gql-generator

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

Cannot read property 'getFields' of undefined #3

Closed Hasan-git closed 5 years ago

Hasan-git commented 5 years ago

Need help please !

capture

timqian commented 5 years ago

@Hasan-git Can you provide a schema which can reproduce this error? I think its todo with the schema

Hasan-git commented 5 years ago

schema { query: Query mutation: TenantMutation } ...... ......

type TenantMutation { createLocation(location: LocationInput!): Location createLookup(lookup: LookupInput!): Lookup createLookups(lookups: [LookupInput]!): [Lookup] }

the problem is going over there ^^^^, whenever I delete mutation it works, and queries will be created successfully !!

when I change "TenantMutation" to "mutation" it works too