graphql-http
Advanced tools
Comparing version 1.10.0 to 1.11.0
{ | ||
"name": "graphql-http", | ||
"version": "1.10.0", | ||
"version": "1.11.0", | ||
"description": "Simple, pluggable, zero-dependency, GraphQL over HTTP Protocol compliant server and client", | ||
@@ -58,2 +58,7 @@ "keywords": [ | ||
}, | ||
"./lib/use/koa": { | ||
"types": "./lib/use/koa.d.ts", | ||
"require": "./lib/use/koa.js", | ||
"import": "./lib/use/koa.mjs" | ||
}, | ||
"./package.json": "./package.json" | ||
@@ -109,2 +114,4 @@ }, | ||
"@types/jest": "^29.2.4", | ||
"@types/koa": "^2.13.5", | ||
"@types/koa-mount": "^4.0.2", | ||
"@typescript-eslint/eslint-plugin": "^5.47.0", | ||
@@ -121,2 +128,4 @@ "@typescript-eslint/parser": "^5.47.0", | ||
"jest-jasmine2": "^29.3.1", | ||
"koa": "^2.14.1", | ||
"koa-mount": "^4.0.0", | ||
"node-fetch": "^3.3.0", | ||
@@ -123,0 +132,0 @@ "prettier": "^2.8.1", |
@@ -144,2 +144,17 @@ <div align="center"> | ||
##### With [`Koa`](https://koajs.com/) | ||
```js | ||
import Koa from 'koa'; // yarn add koa | ||
import mount from 'koa-mount'; // yarn add koa-mount | ||
import { createHandler } from 'graphql-http/lib/use/koa'; | ||
import { schema } from './previous-step'; | ||
const app = new Koa(); | ||
app.use(mount('/graphql', createHandler({ schema }))); | ||
app.listen({ port: 4000 }); | ||
console.log('Listening to port 4000'); | ||
``` | ||
##### With [`Deno`](https://deno.land/) | ||
@@ -737,2 +752,3 @@ | ||
| [hotchocolate](https://chillicream.com/docs/hotchocolate) | [✅ Compliant](/implementations/hotchocolate/README.md) | | ||
| [pioneer](https://pioneer.dexclaimation.com/) | [✅ Compliant](/implementations/pioneer/README.md) | | ||
| [postgraphile](https://www.graphile.org/postgraphile/) | [✅ Compliant](/implementations/postgraphile/README.md) | | ||
@@ -739,0 +755,0 @@ | [apollo-server](https://www.apollographql.com/docs/apollo-server/) | [✅ Compliant](/implementations/apollo-server/README.md) | |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
249520
62
4633
774
38
10