X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fgraphql-client;a=blobdiff_plain;f=bin%2Fgraphql;h=2b5c03b8f1daf353d9ddab51a2a8dafeb075a03f;hp=724f6f32ec81750f3228a1bcce3c6f099b767f0d;hb=HEAD;hpb=1a966ff0db27d934fce36e2bd43ea6aace0a7555 diff --git a/bin/graphql b/bin/graphql index 724f6f3..2b5c03b 100755 --- a/bin/graphql +++ b/bin/graphql @@ -6,8 +6,8 @@ graphql [ [--variables JSON] | [--variable KEY=VALUE]... ] [--operation-name NAME] [--transport KEY=VALUE]... - [--[no-]unpack] [--format json|json:pretty|yaml|perl|csv|tsv|table] - [--output FILE] + [--[no-]unpack] [--filter JSONPATH] + [--format json|json:pretty|yaml|perl|csv|tsv|table] [--output FILE] graphql --version|--help|--manual @@ -112,9 +112,18 @@ By default, the response structure is printed as-is from the server, and the pro When unpack mode is enabled, if the response completes with no errors, only the data section of the response is printed and the program exits 0. If the response has errors, the whole response -structure is printed as-is and the program exits 1. +structure is printed as-is and the program exits 1. See L to see what this looks like in +practice. -See L. +Use C<--no-unpack> to disable if unpack mode was enabled via C. + +=head2 C<--filter JSONPATH> + +Filter the response based on a L expression. + +Requires L. + +Alias: C<-p> =head1 FORMAT