diff --git a/extensions/graphql/README.md b/extensions/graphql/README.md index a2a47c37023a..4aabaee22026 100644 --- a/extensions/graphql/README.md +++ b/extensions/graphql/README.md @@ -63,8 +63,7 @@ npm install --save @loopback/graphql ## Try it out ```sh -npm run build -node dist/__tests__/fixtures/graphql-test/src/index.js +npm run demo ``` You should see the following messages: diff --git a/extensions/graphql/package.json b/extensions/graphql/package.json index 75947c9e01e8..ab71980c875e 100644 --- a/extensions/graphql/package.json +++ b/extensions/graphql/package.json @@ -15,6 +15,7 @@ "integration": "lb-mocha \"dist/__tests__/integration/**/*.js\"", "test": "lb-mocha \"dist/__tests__/**/*.js\"", "unit": "lb-mocha \"dist/__tests__/unit/**/*.js\"", + "demo": "npm run build && node dist/__tests__/fixtures/graphql-test/src/index.js", "verify": "npm pack && tar xf loopback-graphql*.tgz && tree package && npm run clean" }, "author": "IBM Corp.",