question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using type with name `Subscription` results in funky behaviour.

See original GitHub issue

Describe 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:

  1. Use the following schema file:
schema {
  query: QueryRoot
}

type Subscription {
  name: String
  rank: Float
}

type QueryRoot {
  commander: Commander
}
  1. Use the following document:
query getWelcomeGreet {
  welcome {
    hello
  }
}
  1. 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:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
kamilkisielacommented, Nov 29, 2018

v0.14.5 is out 😃

1reaction
ardatancommented, Nov 29, 2018

Great!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found