Adding fields to <model>CreateInput InputType Class #409
-
Hello. Apologies if this is a dumb question or if it has been answered somewhere already...I'm just starting with graphql and everything is very new to me. Is it possible to have extra fields in the createInput class that are not on the prisma schema? Lets say I have a model like this:
after running prisma generate I do get the following UserCreateInput
Lets say I want to also send the userPassword (and register it somewhere else...like passport/identity/etc) via graphql I know I can get that by manually adding
to the createInput class...but that would be overwritten next time I ran prisma generate. I checked this link but it only seems to work for the "User" resolver... not "UserCreateInput" Am I missing something? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
https://typegraphql.com/docs/inheritance.html#types-inheritance |
Beta Was this translation helpful? Give feedback.
https://typegraphql.com/docs/inheritance.html#types-inheritance