There's a problem here:
|
const result = execute(schema, documentAST) as ExecutionResult; |
in graphql-js, this can return a Promise:
https://github.com/graphql/graphql-js/blob/f529809f5408fb9a343e669ea4d4851add3df004/src/execution/execute.js#L141-L144
So generateSchemaHash has to always return a Promise, too.
This probably causes all the graphql-middleware issues, like #1934
There's a problem here:
apollo-server/packages/apollo-server-core/src/utils/schemaHash.ts
Line 11 in 6bd73b1
in graphql-js, this can return a Promise:
https://github.com/graphql/graphql-js/blob/f529809f5408fb9a343e669ea4d4851add3df004/src/execution/execute.js#L141-L144
So generateSchemaHash has to always return a Promise, too.
This probably causes all the graphql-middleware issues, like #1934