Skip to content

Field in interface not get type generated #1389

Description

@dohaicuong

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething is not working the way it should

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions