graphql-codegen-core
Advanced tools
Comparing version 0.8.2 to 0.8.3
@@ -37,2 +37,6 @@ "use strict"; | ||
var field = get_field_def_1.getFieldDef(rootObject, fieldNode); | ||
if (!field) { | ||
debugging_1.debugLog("[buildSelectionSet] Ignoring field because of null result from getFieldDef..."); | ||
return null; | ||
} | ||
var resolvedType = resolve_type_1.resolveType(field.type); | ||
@@ -63,5 +67,5 @@ var childSelectionSet = buildSelectionSet(schema, graphql_1.getNamedType(field.type), fieldNode.selectionSet); | ||
} | ||
}); | ||
}).filter(function (item) { return item; }); // filter to remove null types | ||
} | ||
exports.buildSelectionSet = buildSelectionSet; | ||
//# sourceMappingURL=build-selection-set.js.map |
@@ -6,2 +6,5 @@ "use strict"; | ||
var name = fieldAST.name.value; | ||
if (name === '__typename') { | ||
return null; | ||
} | ||
if (parentType instanceof graphql_1.GraphQLObjectType || | ||
@@ -8,0 +11,0 @@ parentType instanceof graphql_1.GraphQLInterfaceType) { |
{ | ||
"name": "graphql-codegen-core", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"description": "GraphQL types and code generator based on schema", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
138347
961