Package Exports
- codemirror-graphql/hint
- codemirror-graphql/info
- codemirror-graphql/jump
- codemirror-graphql/lint
- codemirror-graphql/mode
- codemirror-graphql/results/mode
- codemirror-graphql/utils/info-addon
- codemirror-graphql/variables/hint
- codemirror-graphql/variables/lint
- codemirror-graphql/variables/mode
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (codemirror-graphql) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
GraphQL mode for CodeMirror
Provides CodeMirror with a parser mode for GraphQL along with a live linter and typeahead hinter powered by your GraphQL Schema.

Getting Started
npm install --save codemirror-graphqlCodeMirror helpers install themselves to the global CodeMirror when they are imported.
import CodeMirror from 'codemirror';
import 'codemirror/addon/hint/show-hint';
import 'codemirror/addon/lint/lint';
import 'codemirror-graphql/hint';
import 'codemirror-graphql/lint';
import 'codemirror-graphql/mode';
CodeMirror.fromTextArea(myTextarea, {
mode: 'graphql',
lint: {
schema: myGraphQLSchema
},
hintOptions: {
schema: myGraphQLSchema
}
});Build for the web with webpack or browserify.