contra/graphql-helix

Update to support GraphQL JS v16

mcrawshaw opened this issue ยท 2 comments

Hi,

After upgrading to GraphQL JS v16 (released 28th of Oct 2021) while using this library, you should receive this error.

 Must provide document.

      at devAssert (node_modules/graphql/jsutils/devAssert.js:12:11)
      at assertValidExecutionArguments (node_modules/graphql/execution/execute.js:145:40)
      at Object.execute (node_modules/graphql/execution/execute.js:74:3)

This is discussed in relation to other libraries here: graphql/graphql-js#3245 (comment)

The most critical change required would be to pass an object rather than params to execute().

Mark.

Just noticed PR #84

Resolved, thanks!