Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/anitrend/insomnia-graphql-generator
- Owner: AniTrend
- License: apache-2.0
- Created: 2018-03-09T23:21:14.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-30T08:57:48.000Z (over 3 years ago)
- Last Synced: 2024-05-21T06:55:20.371Z (8 months ago)
- Topics: graphql-files, insomnia, insomnia-collections, insomnia-graphql-generator, workspace
- Language: Python
- Homepage: https://anitrend.github.io/insomnia-graphql-generator/
- Size: 39.1 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`