File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ Start the GraphQL server on localhost, port 3000.
4646json-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> `
5050To use a host other than localhost, you can run ` json-graphql-server db.js -h <your host here> ` or ` --host <your host here> `
5151
5252Now you can query your data in graphql. For instance, to issue the following query:
@@ -455,7 +455,8 @@ const app = express();
455455const data = {
456456 // ... your data
457457};
458- app .use (' /graphql' , jsonGraphqlExpress (data));
458+
459+ app .use (' /graphql' , jsonGraphqlExpress .default (data));
459460app .listen (PORT );
460461```
461462
You can’t perform that action at this time.
0 commit comments