File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -250,15 +250,15 @@ Let's implement a GraphQL server with today's leading library: [Apollo Server](h
250250Create 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
256256Also create a ` index.js ` file in your project's root directory.
257257
258258The initial code is as follows:
259259
260260``` js
261- const { ApolloServer , gql } = require (' apollo- server' )
261+ const { ApolloServer , gql } = require (' @ apollo/ server' )
262262
263263let persons = [
264264 {
@@ -717,7 +717,7 @@ The errors from those rules are handled by [the error handling mechanism of Apol
717717Let'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
You can’t perform that action at this time.
0 commit comments