diff options
Diffstat (limited to '')
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | deno.json | 2 | ||||
| -rwxr-xr-x | source/http.ts | 6 |
3 files changed, 6 insertions, 6 deletions
@@ -6,7 +6,7 @@ A batteries-included GraphQL toolkit for Deno, wrapping `graphql-js` and `@graph Published on JSR as [`@eol/gq`](https://jsr.io/@eol/gq). -```bash +```sh deno add jsr:@eol/gq ``` @@ -139,4 +139,4 @@ Low-level executor that `GraphQLHTTP` delegates to. Use it if you’re rolling y ## License -MIT. +MIT @@ -8,5 +8,5 @@ }, "license": "MIT", "name": "@eol/gq", - "version": "0.1.0" + "version": "0.1.5" } 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< |