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

📺 Visual Editor for GraphQL. Draw GraphQL schemas using visual 🔷 nodes. Even 🐒 can do that!

License

NotificationsYou must be signed in to change notification settings

Sondro/graphql-editor

 
 

Repository files navigation

GraphQLEditor Editor

npmCommitizen friendlynpm downloads

GraphQLEditor makes it easier to understand GrapHQL schemas. Create a schema by joining visual blocks. GraphQLEditor will transform them into code. With GraphQLEditor you can create visual diagrams without writing any code or present your schema in a nice way!

How it works

GraphQLEditor Editor

Here is alive demo example of GraphQLEditor.

Developer Docs

If you wish to contribute docs fromtypedoc are availble onhttps://graphql-editor.github.io/graphql-editor/

License

MIT

How It Works

Create GraphQL nodes and connect them to generate a database schema. You can also use builtin text IDE with GraphQL syntax validation

Develop or use standalone

npm i graphql-editor
import*asReactfrom'react';import{render}from'react-dom';import{Editor}from'../src/index';classAppextendsReact.Component<{},{editorVisible:boolean;}>{state={editorVisible:true};render(){return(<divstyle={{width:'100%',height:'100%',display:'grid',gridTemplateColumns:this.state.editorVisible ?`auto 1fr` :'1fr',gridTemplateRows:'1fr'}}><EditoreditorVisible={this.state.editorVisible}/></div>);}}render(<App/>,document.getElementById('root'));

Use with schema and make readonly display of graph

import*asReactfrom'react';import{render}from'react-dom';import{Editor}from'../src/index';constschema=`type Query{  hello: String!}schema{  query: Query}`classAppextendsReact.Component<{},{editorVisible:boolean;}>{state={editorVisible:true};render(){return(<divstyle={{width:'100%',height:'100%',display:'grid',gridTemplateColumns:this.state.editorVisible ?`auto 1fr` :'1fr',gridTemplateRows:'1fr'}}><EditoreditorVisible={false}readonly={true}schema={schema}/></div>);}}

Use with schema and make readonly display of graph with code

Same as in preceeding example buteditorVisible is true

<EditoreditorVisible={true}readonly={true}schema={schema}/>

Support

Join our Slack Channel

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

Team

GraphQL Editor Website

Underlying Diagram technology

Whole graphql-editor is based on underlyingdiagram technology. We need much more help there feel free to contribute!

Underlying Parsing technology

Whole graphql-editor parsing stuff is based on underlyingzeus technology. We need much more help there feel free to contribute!

GraphQL Tutorials

Best GraphQL tutorialshere

About

📺 Visual Editor for GraphQL. Draw GraphQL schemas using visual 🔷 nodes. Even 🐒 can do that!

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript99.6%
  • HTML0.4%

[8]ページ先頭

©2009-2025 Movatter.jp