Skip to content

AniTrend/insomnia-graphql-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 or retrofit-graphql for android.

How To Use

Obviously firstly you must have Insomnia 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


Folder or Collection Example

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:

python manage.py --help

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