docs(readme): rename to `@hono/graphql-server`
parent
f7cab780f7
commit
d98b1cdacf
12
README.md
12
README.md
|
@ -1,17 +1,23 @@
|
|||
# GraphQL Server Middleware
|
||||
|
||||
## Information
|
||||
|
||||
GraphQL Server Middleware `@honojs/graphql-server` is renamed to `@hono/graphql-server`.
|
||||
`@honojs/graphql-server` is not maintained, please use `@hono/graphql-server`.
|
||||
Also, for Deno, you can use import with `npm:` prefix like `npm:@hono/graphql-server`.
|
||||
|
||||
## Requirements
|
||||
|
||||
This middleware depends on [GraphQL.js](https://www.npmjs.com/package/graphql).
|
||||
|
||||
```sh
|
||||
npm i @honojs/graphql-server
|
||||
npm i @hono/graphql-server
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```plain
|
||||
yarn add @honojs/graphql-server
|
||||
yarn add @hono/graphql-server
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
@ -20,7 +26,7 @@ index.js:
|
|||
|
||||
```js
|
||||
import { Hono } from 'hono'
|
||||
import { graphqlServer } from '@honojs/graphql-server'
|
||||
import { graphqlServer } from '@hono/graphql-server'
|
||||
import { buildSchema } from 'graphql'
|
||||
|
||||
export const app = new Hono()
|
||||
|
|
|
@ -1,17 +1,23 @@
|
|||
# GraphQL Server Middleware
|
||||
|
||||
## Information
|
||||
|
||||
GraphQL Server Middleware `@honojs/graphql-server` is renamed to `@hono/graphql-server`.
|
||||
`@honojs/graphql-server` is not maintained, please use `@hono/graphql-server`.
|
||||
Also, for Deno, you can use import with `npm:` prefix like `npm:@hono/graphql-server`.
|
||||
|
||||
## Requirements
|
||||
|
||||
This middleware depends on [GraphQL.js](https://www.npmjs.com/package/graphql).
|
||||
|
||||
```sh
|
||||
npm i @honojs/graphql-server
|
||||
npm i @hono/graphql-server
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```plain
|
||||
yarn add @honojs/graphql-server
|
||||
yarn add @hono/graphql-server
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
@ -20,7 +26,7 @@ index.js:
|
|||
|
||||
```js
|
||||
import { Hono } from 'hono'
|
||||
import { graphqlServer } from '@honojs/graphql-server'
|
||||
import { graphqlServer } from '@hono/graphql-server'
|
||||
import { buildSchema } from 'graphql'
|
||||
|
||||
export const app = new Hono()
|
||||
|
|
Loading…
Reference in New Issue