A plugin for the Insomnia app
Gets the GraphQL schema from a URL and creates a request collection for all possible queries and mutations
Clone this repo, and then in the cloned project folder:
# pick correct one
npm run install-on-ubuntu
npm run install-on-mac
Then open Insomnia and go to Application > Preferences > Plugins. It should show up automatically. Make sure it's enabled.
- Make sure the GraphQL server is running and has schema introspection enabled.
- Create a new request collection in Insomnia, or open an existing collection.
- In the upper left of the window, by the name of the collection, click the drop down.
- Choose Generate Requests for a GraphQL Server
- Enter the server URL, such as http://localhost:3000/graphql.
- Click Create Requests.