Allow extendType & extendInputType to extend a GraphQL Type
See original GitHub issueimport { GraphQLObjectType } from 'graphql'
import { extendType } from '@nexus/schema'
const A = new GraphQLObjectType()
const B = extendType({
type: 'A',
// ...
})
makeSchema({
types: [A,B]
})
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:6 (6 by maintainers)
Top 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 >
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 Free
Top 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
This will be fixed by #983
Ah, yep this is a bug.