Revert "New features (#67)"

This reverts commit 88909d0627.
This commit is contained in:
Nutcase
2026-05-03 13:44:09 +03:00
committed by GitHub
parent 104fff31ac
commit 261b44e172
123 changed files with 569 additions and 16694 deletions
@@ -0,0 +1,16 @@
import Foundation
/// API for GraphQL queries
public class GraphQLAPI {
private let client: HTTPClient
public init(client: HTTPClient) {
self.client = client
}
/// Execute a GraphQL query
public func execute(query: String, variables: [String: Any]? = nil) async throws -> [String: Any] {
let request = GraphQLRequest(query: query, variables: variables)
return try await client.post(path: "/graphql", body: request)
}
}