Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field in interface not get type generated #1389

Open
dohaicuong opened this issue Sep 2, 2020 · 0 comments
Open

Field in interface not get type generated #1389

dohaicuong opened this issue Sep 2, 2020 · 0 comments
Labels
type/bug Something is not working the way it should

Comments

@dohaicuong
Copy link

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,

@dohaicuong dohaicuong added the type/bug Something is not working the way it should label Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something is not working the way it should
Projects
None yet
Development

No branches or pull requests

1 participant