graphql-parse-resolve-info
Advanced tools
Comparing version 0.0.1-alpha1.0 to 0.0.1-alpha2.0
28
index.js
@@ -112,17 +112,17 @@ "use strict"; | ||
}; | ||
if (val.selectionSet && options.deep) { | ||
debug("%s[%d] Recursing into subfields", depth, instance); | ||
fieldTreeFromAST( | ||
val.selectionSet.selections, | ||
resolveInfo, | ||
tree[parentType.name][alias].fieldsByTypeName, | ||
options, | ||
fieldGqlType, | ||
`${depth} ` | ||
); | ||
} else { | ||
// No fields to add | ||
debug("%s[%d] Exiting (no fields to add)", depth, instance); | ||
} | ||
} | ||
if (val.selectionSet && options.deep) { | ||
debug("%s[%d] Recursing into subfields", depth, instance); | ||
fieldTreeFromAST( | ||
val.selectionSet.selections, | ||
resolveInfo, | ||
tree[parentType.name][alias].fieldsByTypeName, | ||
options, | ||
fieldGqlType, | ||
`${depth} ` | ||
); | ||
} else { | ||
// No fields to add | ||
debug("%s[%d] Exiting (no fields to add)", depth, instance); | ||
} | ||
} else if (kind === "FragmentSpread" && options.deep) { | ||
@@ -129,0 +129,0 @@ debug("%s[%d] Fragment spread '%s'", depth, instance, name); |
{ | ||
"name": "graphql-parse-resolve-info", | ||
"version": "0.0.1-alpha1.0", | ||
"version": "0.0.1-alpha2.0", | ||
"description": "Parse GraphQLResolveInfo (the 4th argument of resolve) into a simple tree", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10462