apollo-codegen
Advanced tools
Comparing version 0.12.6 to 0.12.7
@@ -402,8 +402,13 @@ 'use strict'; | ||
// Introspection fields do not have descriptions | ||
if (fieldName !== '__typename') { | ||
var description = parentType.getFields()[fieldName].description; | ||
var fieldDef = parentType.getFields()[fieldName]; | ||
if (fieldDef) { | ||
var description = fieldDef.description; | ||
if (description) { | ||
field.description = description; | ||
} | ||
Object.assign(field, { | ||
isDeprecated: fieldDef.isDeprecated, | ||
deprecationReason: fieldDef.deprecationReason | ||
}); | ||
} | ||
@@ -410,0 +415,0 @@ |
{ | ||
"name": "apollo-codegen", | ||
"version": "0.12.6", | ||
"version": "0.12.7", | ||
"description": "Generate API code or type annotations based on a GraphQL schema and query documents", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
635165
9798