Skip to content

Commit

Permalink
Fix executeGraphQL bug (#3193)
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie authored Jun 19, 2020
1 parent fe1ec58 commit f6667f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/hot-pigs-hear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystonejs/keystone': patch
---

Fixed bug when calling `keystone.executeGraphQL()` without a `context` argument.
2 changes: 1 addition & 1 deletion packages/keystone/lib/Keystone/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ module.exports = class Keystone {

executeGraphQL({ context, query, variables }) {
if (!context) {
context = this.createContext();
context = this.createContext({});
}
const schema = this._schemas[context.schemaName];
if (!schema) {
Expand Down

0 comments on commit f6667f0

Please sign in to comment.