Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No examples with --variablesJSON #84

Open
danausx opened this issue Mar 17, 2021 · 0 comments
Open

No examples with --variablesJSON #84

danausx opened this issue Mar 17, 2021 · 0 comments
Labels

Comments

@danausx
Copy link

danausx commented Mar 17, 2021

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 } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants