Open JakeDawkins opened 4 years ago
It'd be helpful to have a command in the CLI to execute operations against a graphql server. The output could be piped to other tools
For example:
apollo execute "query(id: ID!) { node(id: $ID) { ... on User { username } } }" --variables=\{ "id": 1 \} --headers=authorization:"bearer 12345" | jq 'data.node.username' | cat
The logic and maintenance of this command would be pretty minimal if my thinking is correct.
I'm curious what this functionality offers beyond curl
curl
It'd be helpful to have a command in the CLI to execute operations against a graphql server. The output could be piped to other tools
For example:
The logic and maintenance of this command would be pretty minimal if my thinking is correct.