Skip to content

Commit c5b0a47

Browse files
authored
Update part8a.md
1 parent aa3d421 commit c5b0a47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/8/en/part8a.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,15 +250,15 @@ Let's implement a GraphQL server with today's leading library: [Apollo Server](h
250250
Create a new npm project with _npm init_ and install the required dependencies.
251251

252252
```bash
253-
npm install apollo-server graphql
253+
npm install @apollo/server graphql
254254
```
255255

256256
Also create a `index.js` file in your project's root directory.
257257

258258
The initial code is as follows:
259259

260260
```js
261-
const { ApolloServer, gql } = require('apollo-server')
261+
const { ApolloServer, gql } = require('@apollo/server')
262262

263263
let persons = [
264264
{
@@ -717,7 +717,7 @@ The errors from those rules are handled by [the error handling mechanism of Apol
717717
Let's block adding the same name to the phonebook multiple times:
718718

719719
```js
720-
const { ApolloServer, UserInputError, gql } = require('apollo-server') // highlight-line
720+
const { ApolloServer, UserInputError, gql } = require('@apollo/server') // highlight-line
721721

722722
// ...
723723

0 commit comments

Comments
 (0)