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
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
@gqlNodeInterfacecomment tag in the application code