Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simpler structure for GraphQL AST

License

NotificationsYou must be signed in to change notification settings

graphql-editor/graphql-js-tree

Repository files navigation

npmCommitizen friendlynpm downloads

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

How it works

SDL GraphQL

It creates very simpleParserTree from GraphQL schema

import{Parser,TreeToGraphQL}from'graphql-js-tree';constschemaFileContents=`type Query{    hello: String!}schema{    query: Query}`;constparsedSchema=Parser.parse(schemaFileContents);// BackwardsconstgraphqlString=TreeToGraphQL.parse(parsedSchema);

GQL

import{parseGql}from'graphql-js-tree';constschemaFileContents=`type Query{    hello: String!}schema{    query: Query}`;constgqlQuery=`    query MyQuery{        hello    }`;constparsedTrees=parseGql(gqlQuery,schemaFileContents);// BackwardsconstgqlString=parseGqlTrees(parsedTrees);

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 theContribution 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

About

Simpler structure for GraphQL AST

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp