yoga2
yoga2 copied to clipboard
Types.ts does not override types
I follow the docs here, so please maybe I am doing something wrong here.
I have User model defined via Nexus. It is working, I want extend its root type, I want to add new fields that I can access in parent
. I've tried to create types.ts
in ./src
folder.
// types.ts
interface User {
test: string;
}
After restarting server the .yoga/nexus.ts
does not contain updated types.
Hey there, have you tried exporting your types?
Yes I've tried it. Here is simple creating new project, creating types.ts
with try to adjust existing root type: