Skip to content

nordsimon/graphql-min

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL minifier through tagged template

Converts your graphql query to minified one via babel plugin

in .babelrc, add

{
  "plugins": ["graphql-min/babel"]  
}
import gql from 'graphql-min';

const query = gql`{
  foo {
    bar {
      baz
    }
  }
}`

becomes

const query = `{foo{bar{baz}}}`

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published