Array input
#551
Replies: 3 comments 1 reply
-
It kinda works. But how to make ids argument to be optional?
ids is not optional in graphql schema |
Beta Was this translation helpful? Give feedback.
0 replies
-
@drmax24 in your phpdoc annotation, try defining it like the following... /**
* @param string[]|null $ids
*/ |
Beta Was this translation helpful? Give feedback.
0 replies
-
do i have to use phpdoc for it? is there a way to use annotations? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Do we have a simple way to define a simple array of scalars in the input handler?
Here is an example of laravel rebing/graphql query arguments.
I have an argument named ids that is an array of ids
I can easily define an array input without creating a custom input type.
Do we have anything similar?
Beta Was this translation helpful? Give feedback.
All reactions