Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 618 Bytes

readme.md

File metadata and controls

23 lines (14 loc) · 618 Bytes

Build Status

GraphQL Builder

A tool for build GraphQL queries

Usage

import {buiderType, 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} }