Skip to content

Commit

Permalink
docs: fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dhmlau committed Oct 25, 2018
1 parent 1a09b11 commit 97a7695
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docs/site/exposing-graphql-apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,20 @@ command:
npx oasgraph http://localhost:3000/openapi.json
```

If you're using npm version lower than 5.2, run the command below instead:

```sh
node_modules/.bin/oasgraph http://localhost:3000/openapi.json
```
_Haven't heard about `npx` yet? It's a cool helper provided by `npm` and
available out of the box since Node.js 8.x. Learn more in their announcement
blog post:
[Introducing npx: an npm package runner](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b))_

That’s it! You’re now ready to try out some tests and requests in the browser at
http://localhost:3001/graphql.

{% include note.html content="
We are looking into ways how to expose the GraphQL endpoint alongside the main REST API,
on the same HTTP host and port. See
[issue #1905](https://github.com/strongloop/loopback-next/issues/1905).
" %}

### Try Out the GraphQL APIs

Here are some examples of the `query` and `mutation` calls:
Expand Down

0 comments on commit 97a7695

Please sign in to comment.