GraphQL - How retrieve id of previous mutation, during query of multiple mutations
问题 i would like run multiple mutations in the same query. In the example below, i create an order and after i create a product record, concerning previously created. I must have 2 mutations. First, i insert an order. In output, i retrieve among others, idorder. Then, i insert an product. This product mutation { createOrder(input: { order: { ordername: "My order" } }) { order { idorder ordername } }, createProduct(input: { product: { quantity: 3 idrefproduct: 25 # link to refProduct idorder: XXXX