Skip to content

GraphQL: Array input parameters not supported #12623

Open
@thomas-colgrove

Description

Is there an existing issue for this?

  • I have searched the tracker for existing similar issues and I know that duplicates will be closed

Describe the Issue

I am trying to make a query to graphql (beta interface) where the input is an an array which looks roughly like

query GetParentMenuGroupAncestors {
    getAncestors(query: { groups: ["random_id_goes_here"] }) {
        field1
        field2
    }
}

In the response I get "GraphQLError: Expected value of type "[ID!]!", found null." - indicating that the the array param was not set - despite it clearly being in my query. The enter value box is also empty - and seems to want me to input a string there, where it should be an array

Steps To Reproduce

  1. open up the postman app
  2. click new collection - and make a graphql type collection
  3. create a query that takes an array [] as input and try to query

this query works with other graphql playgrounds

Screenshots or Videos

Example

Operating System

macOS

Postman Version

10.22.10

Postman Platform

Postman App

User Account Type

Signed In User

Additional Context?

No response

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions