@pyramation/graphql-ast

0.3.0 • Public • Published

graphql-ast

Super bare-bones GraphQL AST utils

npm install @pyramation/graphql-ast
import * as t from '@pyramation/graphql-ast';

const ast = t.document({
  definitions: [
    t.operationDefinition({
      operation: 'mutation',
      name: mutationName,
      variableDefinitions,
      selectionSet: t.selectionSet({ selections: ... })
    })
  ]
});

Readme

Keywords

none

Package Sidebar

Install

npm i @pyramation/graphql-ast

Weekly Downloads

1

Version

0.3.0

License

SEE LICENSE IN LICENSE

Unpacked Size

12.2 kB

Total Files

6

Last publish

Collaborators

  • pyramation