From 2e22626a5b994182a5c4990d042de1c3f73e47b3 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 13 Feb 2025 02:44:02 -0800 Subject: feat: Initial commit --- Tonbo/Operations/Queries/UserIDQuery.graphql.swift | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Tonbo/Operations/Queries/UserIDQuery.graphql.swift (limited to 'Tonbo/Operations/Queries') 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"] } + } + } +} -- cgit v1.2.3