aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
-rw-r--r--deno.json2
-rwxr-xr-xsource/http.ts6
3 files changed, 6 insertions, 6 deletions
diff --git a/README.md b/README.md
index 51436ad..76412a1 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/deno.json b/deno.json
index 444cf59..c05f639 100644
--- a/deno.json
+++ b/deno.json
@@ -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<