Comparing version
{ | ||
"name": "graphcurl", | ||
"version": "0.3.0", | ||
"description": "GraphQL cURL-like command line client with #import support", | ||
"version": "0.3.1", | ||
"description": "GraphQL curl-like command-line client", | ||
"author": "GraphQL In Depth (https://github.com/graphql-in-depth)", | ||
"license": "MIT", | ||
"keywords": [ | ||
"graphql", | ||
"graphql-client", | ||
"graphql-import", | ||
"graphql-import-cli", | ||
"cli", | ||
"curl", | ||
"client", | ||
"import", | ||
"json", | ||
"yaml", | ||
"csv", | ||
"csv-import", | ||
"console", | ||
"command", | ||
"command-line", | ||
"apollo", | ||
"apollo-client", | ||
"winston" | ||
], | ||
"repository": "https://github.com/graphql-in-depth/graphcurl", | ||
@@ -23,13 +43,13 @@ "bugs": "https://github.com/graphql-in-depth/graphcurl/issues", | ||
"dependencies": { | ||
"apollo-cache-inmemory": "^1.6.3", | ||
"apollo-client": "^2.6.4", | ||
"apollo-link": "^1.2.13", | ||
"apollo-link-context": "^1.0.19", | ||
"apollo-link-error": "^1.1.12", | ||
"apollo-link-http": "^1.5.16", | ||
"apollo-link-ws": "^1.0.19", | ||
"apollo-utilities": "^1.3.2", | ||
"commander": "^4.0.1", | ||
"graphql": "^14.5.8", | ||
"graphql-tag": "^2.5.0", | ||
"apollo-cache-inmemory": "^1.6.6", | ||
"apollo-client": "^2.6.10", | ||
"apollo-link": "^1.2.14", | ||
"apollo-link-context": "^1.0.20", | ||
"apollo-link-error": "^1.1.13", | ||
"apollo-link-http": "^1.5.17", | ||
"apollo-link-ws": "^1.0.20", | ||
"apollo-utilities": "^1.3.4", | ||
"commander": "^5.1.0", | ||
"graphql": "^15.1.0", | ||
"graphql-tag": "^2.10.3", | ||
"node-fetch": "^2.6.0", | ||
@@ -41,4 +61,4 @@ "subscriptions-transport-ws": "^0.9.16", | ||
"devDependencies": { | ||
"prettier": "^1.19.1" | ||
"prettier": "^2.0.5" | ||
} | ||
} |
# Graphcurl | ||
GraphQL cURL-like command line client with #import support | ||
GraphQL curl-like command-line client | ||
[](https://npmjs.org/package/graphcurl) | ||
[](https://npmjs.org/package/graphcurl) | ||
[](https://github.com/graphql-in-depth/graphcurl/blob/master/LICENSE) | ||
## Getting Started | ||
@@ -45,5 +49,10 @@ | ||
- [x] Implement working prototype | ||
- [ ] Set default query variable value from environment and .env | ||
- [ ] Select endpoints from [GraphQL Config](https://graphql-config.com), [Prisma config extension](https://github.com/prisma-labs/graphql-config-extension-prisma), and [Apollo config](https://www.apollographql.com/docs/references/apollo-config/) | ||
- [ ] Support automatic/whitelisted persisted queries | ||
- [ ] Select operation from a file that contains multiple queries/mutations | ||
- [ ] Send multiplied operation in single request for array json/yaml data | ||
- [ ] Load array data from csv with header | ||
- [ ] Select default/environment endpoints from [GraphQL Config](https://graphql-config.com), [Prisma config extension](https://github.com/prisma-labs/graphql-config-extension-prisma), and [Apollo config](https://www.apollographql.com/docs/references/apollo-config/) | ||
- [ ] Use default paths for graphql files from extended GraphQL Config | ||
- [ ] Cleanup code | ||
- [ ] Rewrite to TypeScript | ||
@@ -50,0 +59,0 @@ ## Development |
@@ -19,3 +19,5 @@ const { inspect } = require('util') | ||
}${operation ? `\n@ ${operation.operationName}` : ''}${ | ||
operation && operation.variables && Object.keys(operation.variables).length ? `(${inspect(operation.variables)})` : '' | ||
operation && operation.variables && Object.keys(operation.variables).length | ||
? `(${inspect(operation.variables)})` | ||
: '' | ||
}` | ||
@@ -22,0 +24,0 @@ |
@@ -67,3 +67,3 @@ const fs = require('fs') | ||
if (options.args.length) usage(`Unused arguments: ${args.join(' ')}`) | ||
if (options.args.length) usage(`Unused arguments: ${options.args.join(' ')}`) | ||
if ([options.query, ...options.data, options.header].filter(isStdIn).length > 1) | ||
@@ -70,0 +70,0 @@ usage('At most one of --query, --data, --header options may read from <stdin>') |
18956
11.27%10
11.11%366
0.55%63
16.67%+ Added
+ Added
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated