Run of GraphQL quires using values from JSON

Hello everyone!

I have GraphQL collection with two queries:

  1. query returnsByOrderId($customerOrderNumber: String!)
  2. query orderHistory($email: String,)

I want to test responses with different requests values.

I created JSON file for the first request:

[
  {
      "customerOrderNumber": "GCA00447992"
  },
  {
      "customerOrderNumber": "GUS00447967"
  }
]

And for the second one:

[
  {
      "email": "[email protected]"
  },
  {
      "email": "[email protected]"
  }
]

I run each request separately and it works as expected :white_check_mark:

But I wonder, is there any chance to run it simultaneously? Via Collection Runner or Newman?

What does the JSON file have to look like? How it can gather values for 2 different queries?

I appreciate any help you can provide.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.