insomnia-plugin-graphql-codegen
Automatically generate and import GraphQL operations to your Insomnia Workspace!
![NPM](https://img.shields.io/npm/l/insomnia-plugin-graphql-codegen)
Installation
![](https://github.com/gatzjames/insomnia-plugin-graphql-codegen-import/raw/main/docs/installation.gif)
- Open Insomnia > Preferences > Plugins
- Type
insomnia-plugin-graphql-codegen
and install the plugin.
How it works
- Open a workspace and select the workspace actions dropdown.
- Chose to either import from a url or a schema file.
- Your workspace now includes auto-generated GraphQL operations!
Import from a File
![](https://github.com/gatzjames/insomnia-plugin-graphql-codegen-import/raw/main/docs/graphql-codegen-import-file.gif)
Import from a Url
![](https://github.com/gatzjames/insomnia-plugin-graphql-codegen-import/raw/main/docs/graphql-codegen-import-url.gif)
TODO:
- [ ] Tests
- [ ] Re-importing operations will produce duplicates.
Contributing
Found any bugs? Have any more ideas or want to contribute to the existing development?
Feel free to create a PR/issue in the github repo!