apollo-codegen
Advanced tools
Comparing version 0.12.7 to 0.12.8
@@ -212,4 +212,4 @@ #!/usr/bin/env node | ||
demand: false, | ||
describe: "For non-swift targets, always add the __typename GraphQL introspection type when generating target types", | ||
default: false | ||
describe: "Automatically add the __typename field to every selection set", | ||
default: true | ||
} | ||
@@ -216,0 +216,0 @@ }, function (argv) { |
@@ -40,4 +40,4 @@ 'use strict'; | ||
if (target === 'swift') { | ||
if (options.addTypename) { | ||
console.warn('This option is a no-op for Swift because __typename is already added automatically'); | ||
if (!options.addTypename) { | ||
console.warn('Apollo iOS requires the __typename field to be added automatically'); | ||
} | ||
@@ -44,0 +44,0 @@ options.addTypename = true; |
@@ -50,3 +50,8 @@ 'use strict'; | ||
values: values.map(function (value) { | ||
return { name: value.name, description: value.description }; | ||
return { | ||
name: value.name, | ||
description: value.description, | ||
isDeprecated: value.isDeprecated, | ||
deprecationReason: value.deprecationReason | ||
}; | ||
}) | ||
@@ -53,0 +58,0 @@ }; |
{ | ||
"name": "apollo-codegen", | ||
"version": "0.12.7", | ||
"version": "0.12.8", | ||
"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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
635375
9803