- Notifications
You must be signed in to change notification settings - Fork0
Simpler structure for GraphQL AST
License
NotificationsYou must be signed in to change notification settings
graphql-editor/graphql-js-tree
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Simplier approach to GraphQL parsing. Using graphql-js library and parsing AST to simplier types. It is a backbone ofgraphql-zeus andgraphql-editor
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);
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);
MIT
Join our GraphQL Editor Channel
Leave a star ;)
For a complete guide to contributing to GraphQL Editor, see theContribution Guide.
- Fork this repo
- Create your feature branch: git checkout -b feature-name
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request
About
Simpler structure for GraphQL AST
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.
