Skip to content

Array input #550

Description

@drmax24

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.

    public function args(): array
    {
        return [
            'ids'                   => [
                'type' => Type::listOf(Type::int()),
            ],

Do we have anything similar?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions