Dynamic Graph QL variable names

Viewed 10

The following is a graph QL example:

Query:

query ABC(
  $x: String!
  $y: timestamp!
  $z: timestamp!
) {
    area
    getInTime
    getOutTime

  }
}

Variable:

{
"x" : "22222",
"y" : "333",
"z" : "4444"
}

Now, is there any way that I could use dynamic variable names instead of the query param names(x,y,z) without changing the param names from the Query.

Thanks.

0 Answers
Related