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.

Allow extendType & extendInputType to extend a GraphQL Type

See original GitHub issue
import { GraphQLObjectType } from 'graphql'
import { extendType } from '@nexus/schema' 

const A = new GraphQLObjectType()

const B = extendType({
	type: 'A',
	// ...
})

makeSchema({
	types: [A,B]
})

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
tgriessercommented, Sep 5, 2021

This will be fixed by #983

1reaction
tgriessercommented, Nov 27, 2020

Ah, yep this is a bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

extendType - GraphQL Nexus
Defines a way to incrementally build types, by "extending" a type from multiple locations in a project. Useful in situations where you have...
Read more >
Extending an input type - GraphQLite
Just like with output type (that can be extended using the ExtendType annotation), you can extend/modify an input type using the @Decorate ......
Read more >
How do you extend types in GraphQL? - Stack Overflow
Starting with the June2018 stable version of the GraphQL spec, an Object type can extend another Object type: Object type extensions are ...
Read more >
Extending Types - Hot Chocolate
Type extensions allow us to add, remove or replace fields on existing types, without necessarily needing access to these types.
Read more >
Extending types For Data Modelling in GraphQL | StepZen blog
GraphQL type extensions allow you to add or replace fields on types ... type Person { id: String name: String age: Int }...
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