Skip to content

Commit 234f890

Browse files
authored
Update part8a.md
These changes make sure to use the version 4 of Apollo Server, since the version 3 was deprecated. Source: https://www.npmjs.com/package/apollo-server
1 parent 77a3759 commit 234f890

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/8/es/part8a.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ Implementemos un servidor GraphQL con la biblioteca líder en la actualidad [Apo
247247
Cree un nuevo proyecto npm con _npm init_ e instale las dependencias necesarias.
248248

249249
```bash
250-
npm install apollo-server graphql
250+
npm install @apollo/server graphql
251251
```
252252

253253
También cree un archivo `index.js` en el directorio raíz de su proyecto.
@@ -281,7 +281,7 @@ let persons = [
281281
},
282282
]
283283

284-
const typeDefs = gql`
284+
const typeDefs = `#graphql
285285
type Person {
286286
name: String!
287287
phone: String

0 commit comments

Comments
 (0)