summaryrefslogtreecommitdiff
path: root/Tonbo/Operations/Queries
diff options
context:
space:
mode:
Diffstat (limited to 'Tonbo/Operations/Queries')
-rw-r--r--Tonbo/Operations/Queries/UserIDQuery.graphql.swift44
1 files changed, 44 insertions, 0 deletions
diff --git a/Tonbo/Operations/Queries/UserIDQuery.graphql.swift b/Tonbo/Operations/Queries/UserIDQuery.graphql.swift
new file mode 100644
index 0000000..e5ebf5f
--- /dev/null
+++ b/Tonbo/Operations/Queries/UserIDQuery.graphql.swift
@@ -0,0 +1,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"] }
+ }
+ }
+}