summaryrefslogtreecommitdiff
path: root/Tonbo/Schema
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-02-13 02:44:02 -0800
committerFuwn <[email protected]>2025-02-13 02:44:02 -0800
commit2e22626a5b994182a5c4990d042de1c3f73e47b3 (patch)
treec7bc556b04d9092197ff366c3d1b9624dbccf62f /Tonbo/Schema
downloadtonbo-main.tar.xz
tonbo-main.zip
feat: Initial commitHEADmain
Diffstat (limited to 'Tonbo/Schema')
-rw-r--r--Tonbo/Schema/Objects/Query.graphql.swift12
-rw-r--r--Tonbo/Schema/Objects/User.graphql.swift13
-rw-r--r--Tonbo/Schema/SchemaConfiguration.swift15
-rw-r--r--Tonbo/Schema/SchemaMetadata.graphql.swift32
4 files changed, 72 insertions, 0 deletions
diff --git a/Tonbo/Schema/Objects/Query.graphql.swift b/Tonbo/Schema/Objects/Query.graphql.swift
new file mode 100644
index 0000000..3ebe37d
--- /dev/null
+++ b/Tonbo/Schema/Objects/Query.graphql.swift
@@ -0,0 +1,12 @@
+// @generated
+// This file was automatically generated and should not be edited.
+
+import ApolloAPI
+
+public extension Objects {
+ static let Query = ApolloAPI.Object(
+ typename: "Query",
+ implementedInterfaces: [],
+ keyFields: nil
+ )
+} \ No newline at end of file
diff --git a/Tonbo/Schema/Objects/User.graphql.swift b/Tonbo/Schema/Objects/User.graphql.swift
new file mode 100644
index 0000000..cd0bf77
--- /dev/null
+++ b/Tonbo/Schema/Objects/User.graphql.swift
@@ -0,0 +1,13 @@
+// @generated
+// This file was automatically generated and should not be edited.
+
+import ApolloAPI
+
+public extension Objects {
+ /// A user
+ static let User = ApolloAPI.Object(
+ typename: "User",
+ implementedInterfaces: [],
+ keyFields: nil
+ )
+} \ No newline at end of file
diff --git a/Tonbo/Schema/SchemaConfiguration.swift b/Tonbo/Schema/SchemaConfiguration.swift
new file mode 100644
index 0000000..8723501
--- /dev/null
+++ b/Tonbo/Schema/SchemaConfiguration.swift
@@ -0,0 +1,15 @@
+// @generated
+// This file was automatically generated and can be edited to
+// provide custom configuration for a generated GraphQL schema.
+//
+// Any changes to this file will not be overwritten by future
+// code generation execution.
+
+import ApolloAPI
+
+public enum SchemaConfiguration: ApolloAPI.SchemaConfiguration {
+ public static func cacheKeyInfo(for type: ApolloAPI.Object, object: ApolloAPI.ObjectData) -> CacheKeyInfo? {
+ // Implement this function to configure cache key resolution for your schema types.
+ return nil
+ }
+}
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 {}