@@ -5556,6 +5556,121 @@ public final class StarshipQuery: GraphQLQuery {
55565556 }
55575557}
55585558
5559+ public final class StarshipCoordinatesQuery : GraphQLQuery {
5560+ /// The raw GraphQL definition of this operation.
5561+ public let operationDefinition =
5562+ """
5563+ query StarshipCoordinates($coordinates: [[Float!]!]) {
5564+ starshipCoordinates(coordinates: $coordinates) {
5565+ __typename
5566+ name
5567+ coordinates
5568+ length
5569+ }
5570+ }
5571+ """
5572+
5573+ public let operationName = " StarshipCoordinates "
5574+
5575+ public let operationIdentifier : String ? = " 8dd77d4bc7494c184606da092a665a7c2ca3c2a3f14d3b23fa5e469e207b3406 "
5576+
5577+ public var coordinates : [ [ Double ] ] ?
5578+
5579+ public init ( coordinates: [ [ Double ] ] ? ) {
5580+ self . coordinates = coordinates
5581+ }
5582+
5583+ public var variables : GraphQLMap ? {
5584+ return [ " coordinates " : coordinates]
5585+ }
5586+
5587+ public struct Data : GraphQLSelectionSet {
5588+ public static let possibleTypes = [ " Query " ]
5589+
5590+ public static let selections : [ GraphQLSelection ] = [
5591+ GraphQLField ( " starshipCoordinates " , arguments: [ " coordinates " : GraphQLVariable ( " coordinates " ) ] , type: . object( StarshipCoordinate . selections) ) ,
5592+ ]
5593+
5594+ public private( set) var resultMap : ResultMap
5595+
5596+ public init ( unsafeResultMap: ResultMap ) {
5597+ self . resultMap = unsafeResultMap
5598+ }
5599+
5600+ public init ( starshipCoordinates: StarshipCoordinate ? = nil ) {
5601+ self . init ( unsafeResultMap: [ " __typename " : " Query " , " starshipCoordinates " : starshipCoordinates. flatMap { ( value: StarshipCoordinate ) -> ResultMap in value. resultMap } ] )
5602+ }
5603+
5604+ public var starshipCoordinates : StarshipCoordinate ? {
5605+ get {
5606+ return ( resultMap [ " starshipCoordinates " ] as? ResultMap ) . flatMap { StarshipCoordinate ( unsafeResultMap: $0) }
5607+ }
5608+ set {
5609+ resultMap. updateValue ( newValue? . resultMap, forKey: " starshipCoordinates " )
5610+ }
5611+ }
5612+
5613+ public struct StarshipCoordinate : GraphQLSelectionSet {
5614+ public static let possibleTypes = [ " Starship " ]
5615+
5616+ public static let selections : [ GraphQLSelection ] = [
5617+ GraphQLField ( " __typename " , type: . nonNull( . scalar( String . self) ) ) ,
5618+ GraphQLField ( " name " , type: . nonNull( . scalar( String . self) ) ) ,
5619+ GraphQLField ( " coordinates " , type: . list( . nonNull( . list( . nonNull( . scalar( Double . self) ) ) ) ) ) ,
5620+ GraphQLField ( " length " , type: . scalar( Double . self) ) ,
5621+ ]
5622+
5623+ public private( set) var resultMap : ResultMap
5624+
5625+ public init ( unsafeResultMap: ResultMap ) {
5626+ self . resultMap = unsafeResultMap
5627+ }
5628+
5629+ public init ( name: String , coordinates: [ [ Double ] ] ? = nil , length: Double ? = nil ) {
5630+ self . init ( unsafeResultMap: [ " __typename " : " Starship " , " name " : name, " coordinates " : coordinates, " length " : length] )
5631+ }
5632+
5633+ public var __typename : String {
5634+ get {
5635+ return resultMap [ " __typename " ] ! as! String
5636+ }
5637+ set {
5638+ resultMap. updateValue ( newValue, forKey: " __typename " )
5639+ }
5640+ }
5641+
5642+ /// The name of the starship
5643+ public var name : String {
5644+ get {
5645+ return resultMap [ " name " ] ! as! String
5646+ }
5647+ set {
5648+ resultMap. updateValue ( newValue, forKey: " name " )
5649+ }
5650+ }
5651+
5652+ public var coordinates : [ [ Double ] ] ? {
5653+ get {
5654+ return resultMap [ " coordinates " ] as? [ [ Double ] ]
5655+ }
5656+ set {
5657+ resultMap. updateValue ( newValue, forKey: " coordinates " )
5658+ }
5659+ }
5660+
5661+ /// Length of the starship, along the longest axis
5662+ public var length : Double ? {
5663+ get {
5664+ return resultMap [ " length " ] as? Double
5665+ }
5666+ set {
5667+ resultMap. updateValue ( newValue, forKey: " length " )
5668+ }
5669+ }
5670+ }
5671+ }
5672+ }
5673+
55595674public final class ReviewAddedSubscription : GraphQLSubscription {
55605675 /// The raw GraphQL definition of this operation.
55615676 public let operationDefinition : String =
0 commit comments