Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/anitrend/insomnia-graphql-generator

Convert your insomnia collections to GraphQL files
https://github.com/anitrend/insomnia-graphql-generator

graphql-files insomnia insomnia-collections insomnia-graphql-generator workspace

Last synced: 2 months ago
JSON representation

Convert your insomnia collections to GraphQL files

Awesome Lists containing this project

README

        

# Insomnia Collection GraphQL Generator

Small application to help you generate .graphql files from a GraphQL export workspace in insomnia so you can use it in projects like [Apollo](https://www.apollographql.com/]) or [retrofit-graphql](https://github.com/AniTrend/retrofit-graphql) for android.

## How To Use

Obviously firstly you must have [Insomnia](https://insomnia.rest/) installed and preferably isolate your GraphQL queries into their own separate Work Space which you will export. As shown in the image below:

![Work Space Example](https://insomnia.rest/static/drag-ab3bee8a8fe203bb66cd1143dd89e6d3-a7281.webp)
____

![Folder or Collection Example](https://insomnia.rest/static/main-ac0a1732afac19acce5ad6825595c3bb-9a259.webp)

__N.B.__ The utility can work with up to 3 nested folders _Tested_ in a given workspace. Which means in the image above To-Dos can have upto 3 levels of directories with requests

## Usage

For all available options you can run the following command:
```commandline
python manage.py --help
```

All generated files will be saved in the `./app/io/output`