aboutsummaryrefslogtreecommitdiff
path: root/source/http.ts
diff options
context:
space:
mode:
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<