postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.81k stars 839 forks source link

GraphQL: Array input parameters not supported #12623

Open thomas-colgrove opened 7 months ago

thomas-colgrove commented 7 months ago

Is there an existing issue for this?

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

dormammun commented 1 month ago

Does someone find a solution? Except, put array values manually.