apollo-codegen
Advanced tools
Comparing version 0.17.0-alpha.12 to 0.17.0-alpha.13
@@ -364,3 +364,3 @@ "use strict"; | ||
if (isOptional) { | ||
this.printOnNewline(`return (snapshot["${responseKey}"] as! Snapshot?).flatMap { ${structName}(snapshot: $0) }`); | ||
this.printOnNewline(`return (snapshot["${responseKey}"] as? Snapshot).flatMap { ${structName}(snapshot: $0) }`); | ||
} | ||
@@ -367,0 +367,0 @@ else { |
{ | ||
"name": "apollo-codegen", | ||
"version": "0.17.0-alpha.12", | ||
"version": "0.17.0-alpha.13", | ||
"description": "Generate API code or type annotations based on a GraphQL schema and query documents", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -545,3 +545,3 @@ import * as path from 'path'; | ||
this.printOnNewline( | ||
`return (snapshot["${responseKey}"] as! Snapshot?).flatMap { ${structName}(snapshot: $0) }` | ||
`return (snapshot["${responseKey}"] as? Snapshot).flatMap { ${structName}(snapshot: $0) }` | ||
); | ||
@@ -548,0 +548,0 @@ } else { |
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
461799