Skip to content

Commit e3a98cb

Browse files
committed
1 parent 089ba9d commit e3a98cb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/graphql-playground-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graphql-playground-react",
3-
"version": "1.3.20",
3+
"version": "1.3.21",
44
"main": "./lib/lib.js",
55
"typings": "./lib/lib.d.ts",
66
"description": "GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration).",

packages/graphql-playground-react/src/components/Playground/QueryEditor.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ export class QueryEditor extends React.Component<Props, {}> {
170170
CodeMirror.signal(this.editor, 'change', this.editor)
171171
if (this.props.schema) {
172172
const oldGetType = this.editor.options.hintOptions.schema.getType
173+
/**
174+
* DANGER! THIS IS AN EXTREME HACK. As soon, as codemirror-graphql doesn't use getType in .hint anymore
175+
* this can be removed.
176+
*/
173177
this.editor.options.hintOptions.schema.getType = type => {
174178
const result = oldGetType.call(
175179
this.editor.options.hintOptions.schema,

0 commit comments

Comments
 (0)