Skip to content

Commit 8014976

Browse files
author
Jack
committed
Update documentations
1 parent bf76fc1 commit 8014976

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Start the GraphQL server on localhost, port 3000.
4646
json-graphql-server db.js
4747
```
4848

49-
To use a port other than 3000, you can run `json-graphql-server db.js -p <your port here>` or `--port <your port here>`
49+
To use a port other than 3000, you can run `json-graphql-server db.js --p <your port here>`
5050
To use a host other than localhost, you can run `json-graphql-server db.js -h <your host here>` or `--host <your host here>`
5151

5252
Now you can query your data in graphql. For instance, to issue the following query:
@@ -455,7 +455,8 @@ const app = express();
455455
const data = {
456456
// ... your data
457457
};
458-
app.use('/graphql', jsonGraphqlExpress(data));
458+
459+
app.use('/graphql', jsonGraphqlExpress.default(data));
459460
app.listen(PORT);
460461
```
461462

0 commit comments

Comments
 (0)