how to use generated args #67
-
First of all, I have opened issue about my problem but I didn't know it was the wrong place for asking help. Sorry about that. My question is, I want to use generated args for my resolver. For example we have admin only resolver and it lists all users. And we want to use I tried create new InputType class and extend |
Beta Was this translation helpful? Give feedback.
Answered by
MichalLytek
Feb 23, 2021
Replies: 1 comment
-
Args are args, not inputs, so you can't use @ArgsType()
class MyArgs extends FindManyUserArgs {
@Field()
someField!: string;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cancng
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Args are args, not inputs, so you can't use
@InputType
but only@ArgsType
: