How can the globalID
arg accept an interface type?
#1176
Unanswered
rolandlgnd
asked this question in
Q&A
Replies: 1 comment
-
This isn't currently something that's supported, but you can just entirely omit the for option |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a
prismaInterface
calledAnimal
then a variant calledLion
. However, when I'm creating aninputType
how can I restrict theglobalID
arguments for all types extending theAnimal
interface?I get the following error
Types of property 'kind' are incompatible. Type '"Interface"' is not assignable to type '"Object"'.ts(2322)
I know I can define a list of types and pass it to
for
, however, would like if I would not have to hard-code all the types.Beta Was this translation helpful? Give feedback.
All reactions