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/Schema/SchemaMetadata.graphql.swift | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Tonbo/Schema/SchemaMetadata.graphql.swift (limited to 'Tonbo/Schema/SchemaMetadata.graphql.swift') diff --git a/Tonbo/Schema/SchemaMetadata.graphql.swift b/Tonbo/Schema/SchemaMetadata.graphql.swift new file mode 100644 index 0000000..2607e16 --- /dev/null +++ b/Tonbo/Schema/SchemaMetadata.graphql.swift @@ -0,0 +1,32 @@ +// @generated +// This file was automatically generated and should not be edited. + +import ApolloAPI + +public protocol SelectionSet: ApolloAPI.SelectionSet & ApolloAPI.RootSelectionSet +where Schema == Tonbo.SchemaMetadata {} + +public protocol InlineFragment: ApolloAPI.SelectionSet & ApolloAPI.InlineFragment +where Schema == Tonbo.SchemaMetadata {} + +public protocol MutableSelectionSet: ApolloAPI.MutableRootSelectionSet +where Schema == Tonbo.SchemaMetadata {} + +public protocol MutableInlineFragment: ApolloAPI.MutableSelectionSet & ApolloAPI.InlineFragment +where Schema == Tonbo.SchemaMetadata {} + +public enum SchemaMetadata: ApolloAPI.SchemaMetadata { + public static let configuration: any ApolloAPI.SchemaConfiguration.Type = SchemaConfiguration.self + + public static func objectType(forTypename typename: String) -> ApolloAPI.Object? { + switch typename { + case "Query": return Tonbo.Objects.Query + case "User": return Tonbo.Objects.User + default: return nil + } + } +} + +public enum Objects {} +public enum Interfaces {} +public enum Unions {} -- cgit v1.2.3