All Projects → graphql-editor → graphql-js-tree

graphql-editor / graphql-js-tree

Licence: MIT License
Simpler structure for GraphQL AST

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

npm Commitizen friendly npm downloads

Simplier approach to GraphQL parsing. Using graphql-js library and parsing AST to simplier types. It is a backbone of graphql-zeus and graphql-editor

How it works

It creates very simple ParserTree from GraphQL schema

import { Parser, TreeToGraphQL } from 'graphql-js-tree';

const schemaFileContents = `
type Query{
    hello: String!
}
schema{
    query: Query
}
`;

const parsedSchema = Parser.parse(schemaFileContents);

// Backwards

const graphqlString = TreeToGraphQL.parse(parsedSchema);

Table of contents

License

MIT

Support

Join our GraphQL Editor Channel

Leave a star ;)

Contribute

For a complete guide to contributing to GraphQL Editor, see the Contribution Guide.

  1. Fork this repo
  2. Create your feature branch: git checkout -b feature-name
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].