Replies: 1 comment
-
No, there's no mapping utils like for raw TS types. However, you can use TS mapping types to describe the shape that the new order input type should implement, so you will have errors about missing fields when you change something in object type. |
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 know I can reuse an
ObjecType
as anInputType
. But then my class might have strings like inname
.What I want to achieve is the option to specify an "orderBy" that takes the exact same parameters as the
ObjectInput
, but the values should be1
and-1
or something like that.Is it possible for me to reuse the exact same structure on my
ObjectType
, but have all props be numbers or something like that?Beta Was this translation helpful? Give feedback.
All reactions