# SwiftGraphQLServer **Repository Path**: spm_mirror1/SwiftGraphQLServer ## Basic Information - **Project Name**: SwiftGraphQLServer - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-04-14 - **Last Updated**: 2022-04-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SwiftGraphQLServer ## Usage Example main.swift: ``` import Graphiti import Vapor import SwiftGraphQLServer let schema = try Schema { schema in try schema.query { query in try query.field( name: "test", type: String.self ) { (_, _, _, eventLoop, _) in return eventLoop.next().newSucceededFuture(result: "test") } } } let app = try Application() let router = try app.make(Router.self) try GraphQLServer(schema: schema).run(router: router) try app.run() ``` Then try a GraphQL request against `http://localhost:8080/graphql`.