How would you properly extend a field on prisma objects #1502
Answered
by
hayes
PatricioNG
asked this question in
Q&A
-
|
For the sake of this example, let's say I have a prisma Schema which defines this 1:1 relationship via prisma And I have a prisma objects defined as this: Why would I be receiving this error: As I have only defined it in the objects and not the base interface |
Beta Was this translation helpful? Give feedback.
Answered by
hayes
Aug 18, 2025
Replies: 1 comment 1 reply
-
|
You need to use variant instead of name for one of your types if you have multiple objects backed by the same database table |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
PatricioNG
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to use variant instead of name for one of your types if you have multiple objects backed by the same database table