Nexus: Allow extendType & extendInputType to extend a GraphQL Type

Created on 25 Nov 2020  路  5Comments  路  Source: graphql-nexus/nexus

import { GraphQLObjectType } from 'graphql'
import { extendType } from '@nexus/schema' 

const A = new GraphQLObjectType()

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

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

All 5 comments

@tgriesser WDYT?

Does this not already work?

@Weakky has more context than me, apparently not.

I'm surprised it doesn't, this is the whole reason we walk & unwrap the types as .toConfig - specifically so extendType will work - guess it'd be good to start from a failing test case.

Ah, yep this is a bug.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tl-jarvis-prestidge picture tl-jarvis-prestidge  路  7Comments

ecwyne picture ecwyne  路  6Comments

delianides picture delianides  路  6Comments

tonyfromundefined picture tonyfromundefined  路  3Comments

bizmedia picture bizmedia  路  4Comments