prisma-labs / graphql-framework-experiment

Code-First Type-Safe GraphQL Framework
https://nexusjs.org
MIT License
674 stars 66 forks source link

Field in interface not get type generated #1389

Open dohaicuong opened 4 years ago

dohaicuong commented 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 image

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 image

And as you can see I can write t.id('id') in User model but it will override the resolver of id field

I wonder if this is a bug or what I can do to make it work in nexus way

Cheers,