Skip to content

Commit 1931c51

Browse files
author
Didier Franc
authored
Update Tutorial-ExpressGraphQL.md
1 parent 007ab8f commit 1931c51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/graphql-js/Tutorial-ExpressGraphQL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ next: /graphql-js/graphql-clients/
1010
The simplest way to run an GraphQL API server is to use [Express](https://expressjs.com), a popular web application framework for Node.js. You will need to install two additional dependencies:
1111

1212
```bash
13-
npm install express express-graphql --save
13+
npm install express express-graphql graphql --save
1414
```
1515

1616
Let's modify our “hello world” example so that it's an API server rather than a script that runs a single query. We can use the 'express' module to run a webserver, and instead of executing a query directly with the `graphql` function, we can use the `express-graphql` library to mount a GraphQL API server on the “/graphql” HTTP endpoint:

0 commit comments

Comments
 (0)