Skip to content
/ gqlpq Public

Utility to parse GraphQL files from your client and generate list of persisted queries.

Notifications You must be signed in to change notification settings

Dantese/gqlpq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gqlpq

Utility to parse GraphQL files from your client and generate list of persisted queries. It supports queries with fragments.

Installation

$ yarn add gqlpg

Usage

$ gqlpq --input path/to/graphql --output pq.json --typename true --filter "((\.graphql)|(\.gql))$"

Example

This graphql file will be used to generate persisted queries:

query Book {
    books {
        title
        year
        author
    }
}

Generated output:

{"6fa3cc11f1c1adf09af3dbcc54829972bb8fbfa7be74e3811b1c517e01ac9e30":"query Book {\n  books {\n    title\n    year\n    author\n    __typename\n  }\n}\n"}

About

Utility to parse GraphQL files from your client and generate list of persisted queries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published