graphqurl
graphqurl copied to clipboard
No examples with --variablesJSON
Hello,
I am having some difficulty passing a json object to my insert_one mutation using the --variablesJSON or -n flag on the command line I was unable to find an example on the usage of this flag.
Is it possible to have an example on the correct way to pass json object variables?
This is my mutation:
mutation addPing($data: json) { insert_response_time_one(object: {data: $data}) { data } }
This is my variable:
{ "data": { "rtt_max": 96.19, "rtt_mdev": 0.0, "packet_loss_count": 0, "packet_loss_rate": 0.0, "packet_duplicate_count": 0, "packet_receive": 1, "packet_duplicate_rate": 0.0, "packet_transmit": 1, "rtt_avg": 96.19, "destination": "8.8.8.8", "rtt_min": 96.19 } }