From 07667534e354c35d4e72c39a31fbf6eb1c264dd6 Mon Sep 17 00:00:00 2001 From: "netop://ウィビ" Date: Fri, 24 Apr 2026 08:10:12 -0700 Subject: minor documentation updates --- source/http.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source') diff --git a/source/http.ts b/source/http.ts index 7d867a5..7c747e1 100755 --- a/source/http.ts +++ b/source/http.ts @@ -39,11 +39,11 @@ export type GraphQLHandler = (request: Req) * import { executeSchema, GraphQLHTTP, gql } from "@eol/gq"; * * const schema = executeSchema({ - * typeDefs: gql`type Query { hello: String }`, - * resolvers: { Query: { hello: () => "world" } } + * resolvers: { Query: { hello: () => "world" } }, + * typeDefs: gql`type Query { hello: String }` * }); * - * Deno.serve(GraphQLHTTP({ schema, graphiql: true })); + * Deno.serve(GraphQLHTTP({ graphiql: true, schema })); * ``` */ export function GraphQLHTTP< -- cgit v1.2.3