summaryrefslogtreecommitdiff
path: root/Tonbo/Operations/Queries/UserIDQuery.graphql.swift
blob: e5ebf5f3652fe296569f7bc669c28bc94ccbe862 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// @generated
// This file was automatically generated and should not be edited.

@_exported import ApolloAPI

public class UserIDQuery: GraphQLQuery {
  public static let operationName: String = "UserID"
  public static let operationDocument: ApolloAPI.OperationDocument = .init(
    definition: .init(
      #"query UserID { User(name: "fuwn") { __typename id } }"#
    ))

  public init() {}

  public struct Data: Tonbo.SelectionSet {
    public let __data: DataDict
    public init(_dataDict: DataDict) { __data = _dataDict }

    public static var __parentType: any ApolloAPI.ParentType { Tonbo.Objects.Query }
    public static var __selections: [ApolloAPI.Selection] { [
      .field("User", User?.self, arguments: ["name": "fuwn"]),
    ] }

    /// User query
    public var user: User? { __data["User"] }

    /// User
    ///
    /// Parent Type: `User`
    public struct User: Tonbo.SelectionSet {
      public let __data: DataDict
      public init(_dataDict: DataDict) { __data = _dataDict }

      public static var __parentType: any ApolloAPI.ParentType { Tonbo.Objects.User }
      public static var __selections: [ApolloAPI.Selection] { [
        .field("__typename", String.self),
        .field("id", Int.self),
      ] }

      /// The id of the user
      public var id: Int { __data["id"] }
    }
  }
}