graphql-formatter
v1.0.3
Published
simple graphql formatter
Downloads
5,249
Readme
graphql-formatter
A simple graphql formatter
Tip: it will keep structure of source code
installation
npm install graphql-formatter
usage
import { format } from 'graphql-formatter'
const gql = `
type User{
id:ID!
name: String
}
`
const result = format(gql)
/*
result is:
type User {
id: ID!
name: String
}
*/