Open dohaicuong opened 4 years ago
Hi,
I was implement Node interface to support for Relay using @nexus/schema with field id and resolver for that id field
id
The problem is in the User model when I implements Node interface, the root object type in resolver doesn't have field id included at all
User
Node
And as you can see I can write t.id('id') in User model but it will override the resolver of id field
t.id('id')
I wonder if this is a bug or what I can do to make it work in nexus way
Cheers,
Hi,
I was implement Node interface to support for Relay using @nexus/schema with field
id
and resolver for thatid
fieldThe problem is in the
User
model when I implementsNode
interface, the root object type in resolver doesn't have fieldid
included at allAnd as you can see I can write
t.id('id')
in User model but it will override the resolver ofid
fieldI wonder if this is a bug or what I can do to make it work in nexus way
Cheers,