docs(readme): rename to `@hono/graphql-server`

pull/29/head
Yusuke Wada 2023-02-04 11:02:22 +09:00
parent f7cab780f7
commit d98b1cdacf
2 changed files with 18 additions and 6 deletions

View File

@ -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()

View File

@ -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()