Using type with name `Subscription` results in funky behaviour.
See original GitHub issueDescribe the bug
When defining a ObjectType with the name Subscription
, and either having no Subscriptions definitions or having a Subscription root with a different Subscription root type results in errors.
To Reproduce Steps to reproduce the behavior:
- Use the following schema file:
schema {
query: QueryRoot
}
type Subscription {
name: String
rank: Float
}
type QueryRoot {
commander: Commander
}
- Use the following document:
query getWelcomeGreet {
welcome {
hello
}
}
- Run gql-gen with the following codegen.yml:
schema:
- 'src/app/**/*.graphqls'
documents:
- 'src/**/*.graphql'
config: {}
generates:
src/app/graphql/queries.ts:
config: {}
plugins:
- 'typescript-common'
- 'typescript-client'
- 'typescript-apollo-angular'
watch: true
overwrite: true
require: []
Expected behavior Expected a normal generation of types, queries etc.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7
Top Results From Across the Web
Funky Fonts May Help Students Learn
Relatively tough-to-read fonts improve learning, according to a new study.
Read more >Azure event grid - replace existing subscription if given ...
I am learning azure event grid and while practicing I noticed one behavior where I can create new subscription with same name as...
Read more >How to add Content-Type for income request by conditions ...
I have a scenario that adding 'application/json' as default Content-Type for incoming request if cannot find Content-Type from request in MPGW, ...
Read more >python - How to print instances of a class using print()?
How can I can define the printing behaviour (or the string representation) of a class and its instances? For example, referring to the...
Read more >Create an Excel Drop Down List with Search Suggestions
Learn how to create an Excel drop down that shows suggestions as you type. ... We will use this dynamic named range to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
v0.14.5
is out 😃Great!