This is not possible, because you cannot use a variable inside another variable.
The orderNo is a variable, that gets its value set after executing the order_create field. You can't use it in the variable for order lines.
I suggest two alternatives:
- You pass all the data you need for the order lines as inputs (variables) and use it accordingly in the query. I know this limits you to a fix number of order lines.
- You execute two queries. The first to create the order and get back the order number. Then you build the variables programmatically, putting the order number in the dictionary and execute the second mutation for creating the lines.
... View more