aboutsummaryrefslogtreecommitdiff
path: root/source/http.ts
diff options
context:
space:
mode:
authornetop://ウィビ <paul@webb.page>2026-04-24 08:10:12 -0700
committernetop://ウィビ <paul@webb.page>2026-04-24 08:10:12 -0700
commit07667534e354c35d4e72c39a31fbf6eb1c264dd6 (patch)
treee61536b8d917ac4c30b70acd2f31574e8c0223e4 /source/http.ts
parent4c6194c4c2b5506f6d482347b0c13033ef17b5c7 (diff)
downloadgq-07667534e354c35d4e72c39a31fbf6eb1c264dd6.tar.gz
gq-07667534e354c35d4e72c39a31fbf6eb1c264dd6.zip
minor documentation updates
Diffstat (limited to '')
-rwxr-xr-xsource/http.ts6
1 files changed, 3 insertions, 3 deletions
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<Req extends GQLRequest = GQLRequest> = (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<