1.0.13 • Published 3 years ago

insomnia-plugin-gql-fragments v1.0.13

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

insomnia-plugin-gql-fragments

An Insomnia Plugin Hack into Insomnia to support GQL Fragments. Use the body of a new empty request and add the fragment to the body. Where you want to use fragment in gql the following : {% fragment 'req_12345' %}. Fragments can be duplicated or never used in the request body, they will be removed in the request hooks..

Use-Case

Installation

Install the insomnia-plugin-gql-fragments plugin from Preferences > Plugins.

How to Use It

Development

Create a .env file in this repo with the following contents:

# Set to the location of the insomnia plugins folder (in Insomnia, go to
# Preferences -> Plugins, then click Reveal Plugins Folder)
# Default values are:
# MacOS: ~/Library/Application\ Support/Insomnia/plugins/
# Windows: %APPDATA%\Insomnia\plugins\
# Linux: $XDG_CONFIG_HOME/Insomnia/plugins/ or ~/.config/Insomnia/plugins/
PLUGINS_DIRECTORY=/mnt/c/Users/your_username/AppData/Roaming/insomnia/plugins

To install the plugin into Insomnia locally, run install-plugin.sh, then refresh plugins in Insomnia or restart Insomnia.

1.0.13

3 years ago

1.0.12

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.0

3 years ago