Skip to content

Support GraphQL list as argument in query #601

@bjartek

Description

@bjartek

I am trying to create a GraphQL Query that will take a list of Strings as a input paramter.

If i try to add a names list as the first parameter to the employees queryin the examples project I get the following exception back:

Caused by: com.expediagroup.graphql.exceptions.InvalidInputFieldTypeException: Argument cannot be an interface or a union, parameter #1 names of fun com.expediagroup.graphql.examples.query.EmployeeQuery.employees(kotlin.collections.List<kotlin.String>): kotlin.collections.List<com.expediagroup.graphql.examples.model.Employee>

I would expect this to generate the query
employees(names: [String!]!): [Employee!]

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions