graphql-parse-resolve-info
Advanced tools
Comparing version
@@ -137,3 +137,3 @@ "use strict"; | ||
} | ||
const fieldGqlTypeOrUndefined = graphql_1.getNamedType(field.type); | ||
const fieldGqlTypeOrUndefined = (0, graphql_1.getNamedType)(field.type); | ||
if (!fieldGqlTypeOrUndefined) { | ||
@@ -143,3 +143,3 @@ return tree; | ||
const fieldGqlType = fieldGqlTypeOrUndefined; | ||
const args = values_1.getArgumentValues(field, val, variableValues) || {}; | ||
const args = (0, values_1.getArgumentValues)(field, val, variableValues) || {}; | ||
if (parentType.name && !tree[parentType.name][alias]) { | ||
@@ -150,3 +150,3 @@ const newTreeRoot = { | ||
args, | ||
fieldsByTypeName: graphql_1.isCompositeType(fieldGqlType) | ||
fieldsByTypeName: (0, graphql_1.isCompositeType)(fieldGqlType) | ||
? { | ||
@@ -162,3 +162,3 @@ [fieldGqlType.name]: {}, | ||
options.deep && | ||
graphql_1.isCompositeType(fieldGqlType)) { | ||
(0, graphql_1.isCompositeType)(fieldGqlType)) { | ||
const newParentType = fieldGqlType; | ||
@@ -187,3 +187,3 @@ if (DEBUG_ENABLED) | ||
} | ||
if (fragmentType && graphql_1.isCompositeType(fragmentType)) { | ||
if (fragmentType && (0, graphql_1.isCompositeType)(fragmentType)) { | ||
const newParentType = fragmentType; | ||
@@ -202,3 +202,3 @@ fieldTreeFromAST(fragment.selectionSet.selections, resolveInfo, tree, options, newParentType, `${depth} `); | ||
debug("%s[%d] Inline fragment (parent = '%s', type = '%s')", depth, instance, parentType, fragmentType); | ||
if (fragmentType && graphql_1.isCompositeType(fragmentType)) { | ||
if (fragmentType && (0, graphql_1.isCompositeType)(fragmentType)) { | ||
const newParentType = fragmentType; | ||
@@ -235,4 +235,4 @@ fieldTreeFromAST(fragment.selectionSet.selections, resolveInfo, tree, options, newParentType, `${depth} `); | ||
const fields = {}; | ||
const strippedType = graphql_1.getNamedType(type); | ||
if (graphql_1.isCompositeType(strippedType)) { | ||
const strippedType = (0, graphql_1.getNamedType)(type); | ||
if ((0, graphql_1.isCompositeType)(strippedType)) { | ||
Object.assign(fields, fieldsByTypeName[strippedType.name]); | ||
@@ -239,0 +239,0 @@ if (strippedType instanceof graphql_1.GraphQLObjectType) { |
@@ -137,3 +137,3 @@ "use strict"; | ||
} | ||
const fieldGqlTypeOrUndefined = graphql_1.getNamedType(field.type); | ||
const fieldGqlTypeOrUndefined = (0, graphql_1.getNamedType)(field.type); | ||
if (!fieldGqlTypeOrUndefined) { | ||
@@ -143,3 +143,3 @@ return tree; | ||
const fieldGqlType = fieldGqlTypeOrUndefined; | ||
const args = values_1.getArgumentValues(field, val, variableValues) || {}; | ||
const args = (0, values_1.getArgumentValues)(field, val, variableValues) || {}; | ||
if (parentType.name && !tree[parentType.name][alias]) { | ||
@@ -150,3 +150,3 @@ const newTreeRoot = { | ||
args, | ||
fieldsByTypeName: graphql_1.isCompositeType(fieldGqlType) | ||
fieldsByTypeName: (0, graphql_1.isCompositeType)(fieldGqlType) | ||
? { | ||
@@ -162,3 +162,3 @@ [fieldGqlType.name]: {}, | ||
options.deep && | ||
graphql_1.isCompositeType(fieldGqlType)) { | ||
(0, graphql_1.isCompositeType)(fieldGqlType)) { | ||
const newParentType = fieldGqlType; | ||
@@ -187,3 +187,3 @@ if (DEBUG_ENABLED) | ||
} | ||
if (fragmentType && graphql_1.isCompositeType(fragmentType)) { | ||
if (fragmentType && (0, graphql_1.isCompositeType)(fragmentType)) { | ||
const newParentType = fragmentType; | ||
@@ -202,3 +202,3 @@ fieldTreeFromAST(fragment.selectionSet.selections, resolveInfo, tree, options, newParentType, `${depth} `); | ||
debug("%s[%d] Inline fragment (parent = '%s', type = '%s')", depth, instance, parentType, fragmentType); | ||
if (fragmentType && graphql_1.isCompositeType(fragmentType)) { | ||
if (fragmentType && (0, graphql_1.isCompositeType)(fragmentType)) { | ||
const newParentType = fragmentType; | ||
@@ -235,4 +235,4 @@ fieldTreeFromAST(fragment.selectionSet.selections, resolveInfo, tree, options, newParentType, `${depth} `); | ||
const fields = {}; | ||
const strippedType = graphql_1.getNamedType(type); | ||
if (graphql_1.isCompositeType(strippedType)) { | ||
const strippedType = (0, graphql_1.getNamedType)(type); | ||
if ((0, graphql_1.isCompositeType)(strippedType)) { | ||
Object.assign(fields, fieldsByTypeName[strippedType.name]); | ||
@@ -239,0 +239,0 @@ if (strippedType instanceof graphql_1.GraphQLObjectType) { |
{ | ||
"name": "graphql-parse-resolve-info", | ||
"version": "4.12.0", | ||
"version": "4.12.3", | ||
"description": "Parse GraphQLResolveInfo (the 4th argument of resolve) into a simple tree", | ||
@@ -56,3 +56,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "d3bd2caba99954cc2269ccad58da37d5b2c872d6" | ||
"gitHead": "eb1056b59f8217807e1c53076f9081d08c09aa76" | ||
} |
@@ -32,6 +32,13 @@ # graphql-parse-resolve-info | ||
<table><tr> | ||
<td align="center"><a href="https://surge.io/"><img src="https://graphile.org/images/sponsors/surge.png" width="90" height="90" alt="Surge" /><br />Surge</a> *</td> | ||
<td align="center"><a href="https://storyscript.com/?utm_source=postgraphile"><img src="https://graphile.org/images/sponsors/storyscript.png" width="90" height="90" alt="Story.ai" /><br />Story.ai</a> *</td> | ||
<td align="center"><a href="http://chads.website"><img src="https://graphile.org/images/sponsors/chadf.png" width="90" height="90" alt="Chad Furman" /><br />Chad Furman</a> *</td> | ||
<td align="center"><a href="https://storyscript.com/?utm_source=postgraphile"><img src="https://graphile.org/images/sponsors/storyscript.png" width="90" height="90" alt="Storyscript" /><br />Storyscript</a> *</td> | ||
<td align="center"><a href="https://postlight.com/?utm_source=graphile"><img src="https://graphile.org/images/sponsors/postlight.jpg" width="90" height="90" alt="Postlight" /><br />Postlight</a> *</td> | ||
<td align="center"><a href="https://surge.io/"><img src="https://graphile.org/images/sponsors/surge.png" width="90" height="90" alt="Surge.io" /><br />Surge.io</a> *</td> | ||
<td align="center"><a href="https://www.the-guild.dev/"><img src="https://graphile.org/images/sponsors/theguild.png" width="90" height="90" alt="The Guild" /><br />The Guild</a> *</td> | ||
</tr><tr> | ||
<td align="center"><a href="https://qwick.com/"><img src="https://graphile.org/images/sponsors/qwick.png" width="90" height="90" alt="Qwick" /><br />Qwick</a> *</td> | ||
<td align="center"><a href="https://www.fanatics.com/"><img src="https://graphile.org/images/sponsors/fanatics.png" width="90" height="90" alt="Fanatics" /><br />Fanatics</a> *</td> | ||
<td align="center"><a href="https://graphcdn.io/"><img src="https://graphile.org/images/sponsors/GraphCDN.png" width="90" height="90" alt="GraphCDN" /><br />GraphCDN</a> *</td> | ||
<td align="center"><a href="https://dovetailapp.com/"><img src="https://graphile.org/images/sponsors/dovetail.png" width="90" height="90" alt="Dovetail" /><br />Dovetail</a> *</td> | ||
</tr><tr> | ||
<td align="center"><a href="https://www.enzuzo.com/"><img src="https://graphile.org/images/sponsors/enzuzo.png" width="90" height="90" alt="Enzuzo" /><br />Enzuzo</a> *</td> | ||
</tr></table> | ||
@@ -38,0 +45,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
58462
1.8%383
1.86%