graphql-auto-query
Advanced tools
Comparing version 0.0.8 to 1.0.0
@@ -120,2 +120,4 @@ "use strict"; | ||
const fragment = this.fragments[type.name]; | ||
if (field.args.length === 0 && !fragment) | ||
return ""; | ||
if (fragment) | ||
@@ -122,0 +124,0 @@ this.isFragmentUsed.add(fragment); |
@@ -117,2 +117,4 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
const fragment = this.fragments[type.name]; | ||
if (field.args.length === 0 && !fragment) | ||
return ""; | ||
if (fragment) | ||
@@ -119,0 +121,0 @@ this.isFragmentUsed.add(fragment); |
{ | ||
"name": "graphql-auto-query", | ||
"version": "0.0.8", | ||
"version": "1.0.0", | ||
"author": "SoraKumo <info@croud.jp>", | ||
@@ -10,4 +10,4 @@ "description": "Automatic generation of GraphQL queries from GraphQL schemas", | ||
"test:generate": "ts-node src/command test/source.graphql -o test/output.graphql -d 5", | ||
"test:generate2": "ts-node src/command http://localhost:3000/graphql -o test/output.graphql -d 5", | ||
"test:generate3": "ts-node src/command https://beta.pokeapi.co/graphql/v1beta -o test/output2.graphql -d 1" | ||
"test:generate2": "ts-node src/command https://beta.pokeapi.co/graphql/v1beta -o test/output2.graphql -d 1", | ||
"test:generate3": "ts-node src/command https://graphqlpokemon.favware.tech/v8 -o test/output3.graphql -d 1" | ||
}, | ||
@@ -25,13 +25,13 @@ "bin": { | ||
"@colors/colors": "^1.6.0", | ||
"@types/node": "^20.8.3", | ||
"graphql": "^16.8.1", | ||
"@types/node": "^22.10.2", | ||
"graphql": "^16.9.0", | ||
"minimist": "^1.2.8" | ||
}, | ||
"devDependencies": { | ||
"@types/minimist": "^1.2.3", | ||
"@types/minimist": "^1.2.5", | ||
"cpy-cli": "^5.0.0", | ||
"ts-node": "^10.9.1", | ||
"ts-patch": "^3.0.2", | ||
"typescript": "^5.2.2", | ||
"typescript-transform-paths": "^3.4.6" | ||
"ts-node": "^10.9.2", | ||
"ts-patch": "^3.3.0", | ||
"typescript": "^5.7.2", | ||
"typescript-transform-paths": "^3.5.2" | ||
}, | ||
@@ -38,0 +38,0 @@ "license": "MIT", |
@@ -27,2 +27,7 @@ # graphql-auto-query | ||
graphql-auto-query schema/schema.graphql -o query.graphql | ||
# other | ||
graphql-auto-query https://beta.pokeapi.co/graphql/v1beta -o test/output2.graphql -d 1 | ||
graphql-auto-query https://graphqlpokemon.favware.tech/v8 -o test/output3.graphql -d 1 | ||
``` | ||
@@ -29,0 +34,0 @@ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
29396
691
0
43
+ Added@types/node@22.10.10(transitive)
+ Addedundici-types@6.20.0(transitive)
- Removed@types/node@20.17.16(transitive)
- Removedundici-types@6.19.8(transitive)
Updated@types/node@^22.10.2
Updatedgraphql@^16.9.0