diff options
| author | netop://ウィビ <paul@webb.page> | 2026-04-24 08:10:12 -0700 |
|---|---|---|
| committer | netop://ウィビ <paul@webb.page> | 2026-04-24 08:10:12 -0700 |
| commit | 07667534e354c35d4e72c39a31fbf6eb1c264dd6 (patch) | |
| tree | e61536b8d917ac4c30b70acd2f31574e8c0223e4 /source/http.ts | |
| parent | 4c6194c4c2b5506f6d482347b0c13033ef17b5c7 (diff) | |
| download | gq-07667534e354c35d4e72c39a31fbf6eb1c264dd6.tar.gz gq-07667534e354c35d4e72c39a31fbf6eb1c264dd6.zip | |
minor documentation updates
Diffstat (limited to '')
| -rwxr-xr-x | source/http.ts | 6 |
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< |