diff --git a/docs/site/exposing-graphql-apis.md b/docs/site/exposing-graphql-apis.md index 4a3fdc5d65e3..c88dad98945f 100644 --- a/docs/site/exposing-graphql-apis.md +++ b/docs/site/exposing-graphql-apis.md @@ -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: