1.0.0 • Published 5 years ago

gql-string-rebuilder v1.0.0

Weekly downloads
1
License
GPL-3.0-or-later
Repository
github
Last release
5 years ago

gqlStringRebuilder

Graphql string rebuilder

This module is used to get the query string from a querr object obtained from graphql-tag

exemple:

import gql from 'graphql-tag';
import stringRebuilder from 'gqlStringRebuilder';

const query = gql`{ Cars(brand: "Honda"} { id, name, price } }`;
const queryString = stringRebuilder(query);

console.log(queryString);
----> { Cars(brand: "Honda"} { id, name, price } }