graphqlbuilder
v1.0.0
Published
A builder for GraphQL queries
Downloads
1
Readme
GraphQL Builder
A tool for build GraphQL queries
Usage
import {buidlerType, retornaParametros } from 'graphqlbuilder'
// build a type
const book = builderType('book',{isbn:'3747485xxxxxxx'})
// output: book (isbn:3747485xxxxxxx)
const bookwithParams = builderType('book',{isbn:'3747485xxxxxxx'}, retornaParametros(['name',retornaParametros(['address','email'])]))
// output: book (isbn:3747485xxxxxxx) {name, author: {address, email} }