aboutsummaryrefslogtreecommitdiff
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
parent4c6194c4c2b5506f6d482347b0c13033ef17b5c7 (diff)
downloadgq-07667534e354c35d4e72c39a31fbf6eb1c264dd6.tar.gz
gq-07667534e354c35d4e72c39a31fbf6eb1c264dd6.zip
minor documentation updates
-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<