Skip to content

Array input #550

@drmax24

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions