Skip to content

Add Node interface codegen functionality #233

@lkuoch

Description

@lkuoch

There is a known limitation where if you have types implementing the node interface you have to manually define the typenames again.

As a result, this loses type safety and can be easy to miss.

I'm not too sure what the typescript compiler has access to but potentially there could be a codegen step to generate a schema-types.ts with all the typenames that implement node.

Potentially it may require having a special @gqlNodeInterface comment tag in the application code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions