Skip to content

[Docs] Add docs for exposing GraphQL APIs #1775

@dhmlau

Description

@dhmlau

Description / Steps to reproduce / Feature proposal

Currently user can do the following steps to create GraphQL APIs within a LoopBack app:

  1. Run npm i --save express express-graphql oasgraph
  2. Make sure the LB app has started.
  3. From the browser, go to http://localhost:3000/openapi.json, copy the openapi.json, and save it under the root of the LoopBack application, say todo-openapi.json
  4. Run ./node_modules/.bin/oasgraph todo-openapi.json
  5. Test it by going to http://localhost:3001/graphql

Acceptance Criteria

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions