From: Charles McGarvey Date: Sun, 22 Mar 2020 09:46:13 +0000 (-0600) Subject: Release GraphQL-Client 0.604 X-Git-Tag: v0.604^0 X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=d863e46a9b52a7320ec1fcef23eb4f91a76d471e;p=chaz%2Fgraphql-client Release GraphQL-Client 0.604 * Add --filter JSONPATH argument to CLI. --- diff --git a/Changes b/Changes index 92d2e0e..81b6bbd 100644 --- a/Changes +++ b/Changes @@ -2,6 +2,9 @@ Revision history for GraphQL-Client. {{$NEXT}} +0.604 2020-03-22 03:44:44-06:00 MST7MDT + * Add --filter JSONPATH argument to CLI. + 0.603 2020-03-22 02:01:32-06:00 MST7MDT * Allow deep formatting with csv,tsv,table. * Fix Unicode issues. diff --git a/README.md b/README.md index b8247a8..caebdfd 100644 --- a/README.md +++ b/README.md @@ -4,14 +4,14 @@ graphql - Command-line GraphQL client # VERSION -version 0.603 +version 0.604 # SYNOPSIS 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 @@ -121,6 +121,14 @@ practice. Use `--no-unpack` to disable if unpack mode was enabled via `GRAPHQL_CLIENT_OPTIONS`. +## `--filter JSONPATH` + +Filter the response based on a [JSONPath](https://metacpan.org/pod/JSON%3A%3APath#SYNOPSIS) expression. + +Requires [JSON::Path](https://metacpan.org/pod/JSON%3A%3APath). + +Alias: `-p` + # FORMAT The argument for ["--format STR"](#format-str) can be one of: