How to extend inputObjectType in new inputObjectType #990
singhnivedita95
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
const FirstDataInput = inputObjectType({
name: 'FirstDataInput',
definition(t) {
t.nonNull.string('f_name')
t.nonNull.string('l_name')
},
})
const SecondDataInput = inputObjectType({
name: 'SecondDataInput',
definition(t) {
// here want f_name and l_name as well from FirstDataInput
t.nonNull.string('email')
t.nonNull.string('phone')
},
})
Beta Was this translation helpful? Give feedback.
All reactions