docs(readme): rename to `@hono/graphql-server`
parent
f7cab780f7
commit
d98b1cdacf
12
README.md
12
README.md
|
@ -1,17 +1,23 @@
|
||||||
# GraphQL Server Middleware
|
# 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
|
## Requirements
|
||||||
|
|
||||||
This middleware depends on [GraphQL.js](https://www.npmjs.com/package/graphql).
|
This middleware depends on [GraphQL.js](https://www.npmjs.com/package/graphql).
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm i @honojs/graphql-server
|
npm i @hono/graphql-server
|
||||||
```
|
```
|
||||||
|
|
||||||
or
|
or
|
||||||
|
|
||||||
```plain
|
```plain
|
||||||
yarn add @honojs/graphql-server
|
yarn add @hono/graphql-server
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
@ -20,7 +26,7 @@ index.js:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import { Hono } from 'hono'
|
import { Hono } from 'hono'
|
||||||
import { graphqlServer } from '@honojs/graphql-server'
|
import { graphqlServer } from '@hono/graphql-server'
|
||||||
import { buildSchema } from 'graphql'
|
import { buildSchema } from 'graphql'
|
||||||
|
|
||||||
export const app = new Hono()
|
export const app = new Hono()
|
||||||
|
|
|
@ -1,17 +1,23 @@
|
||||||
# GraphQL Server Middleware
|
# 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
|
## Requirements
|
||||||
|
|
||||||
This middleware depends on [GraphQL.js](https://www.npmjs.com/package/graphql).
|
This middleware depends on [GraphQL.js](https://www.npmjs.com/package/graphql).
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm i @honojs/graphql-server
|
npm i @hono/graphql-server
|
||||||
```
|
```
|
||||||
|
|
||||||
or
|
or
|
||||||
|
|
||||||
```plain
|
```plain
|
||||||
yarn add @honojs/graphql-server
|
yarn add @hono/graphql-server
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
@ -20,7 +26,7 @@ index.js:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import { Hono } from 'hono'
|
import { Hono } from 'hono'
|
||||||
import { graphqlServer } from '@honojs/graphql-server'
|
import { graphqlServer } from '@hono/graphql-server'
|
||||||
import { buildSchema } from 'graphql'
|
import { buildSchema } from 'graphql'
|
||||||
|
|
||||||
export const app = new Hono()
|
export const app = new Hono()
|
||||||
|
|
Loading…
Reference in New Issue