Skip to content

Commit 661e30f

Browse files
fix: update installation instructions to include required dependencies for GraphQL Yoga and Apollo Server
1 parent 984bf3d commit 661e30f

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,30 @@
3636

3737
### Step 1: Installation
3838

39-
Choose your preferred package manager:
39+
Choose your GraphQL framework and install required dependencies:
4040

41+
**For GraphQL Yoga:**
4142
```bash
4243
# npm
43-
npm install nitro-graphql
44+
npm install nitro-graphql graphql-yoga graphql
4445

4546
# pnpm (recommended)
46-
pnpm add nitro-graphql
47+
pnpm add nitro-graphql graphql-yoga graphql
4748

4849
# yarn
49-
yarn add nitro-graphql
50+
yarn add nitro-graphql graphql-yoga graphql
51+
```
52+
53+
**For Apollo Server:**
54+
```bash
55+
# npm
56+
npm install nitro-graphql @apollo/server graphql
57+
58+
# pnpm (recommended)
59+
pnpm add nitro-graphql @apollo/server graphql
60+
61+
# yarn
62+
yarn add nitro-graphql @apollo/server graphql
5063
```
5164

5265
### Step 2: Setup Your Project

0 commit comments

Comments
 (0)