/grahpql-template

make graphql-tag as simple dynamic object

Primary LanguageTypeScript

grahpql-template

$ yarn add grahpql-template
import GTemplate from 'graphql-template';

const templateString = GTemplate({
  type: 'mutation',
  name: 'deleteUser',
  values: [{ id: 'Int!' }],
});

const DELETE_USER = gql(templateString);