Cannot convert undefined or null to object


#1

Calling from console playground works but get this error when using graphql-yoga (prisma 1.80):

TypeError: Cannot convert undefined or null to object
at Function.keys ()
at D:\dev\serverless-graphql\node_modules\graphql-binding\node_modules\graphql-tools\dist\stitching\delegateToSchema.js:63:112
at step (D:\dev\serverless-graphql\node_modules\graphql-binding\node_modules\graphql-tools\dist\stitching\delegateToSchema.js:32:23)
at Object.next (D:\dev\serverless-graphql\node_modules\graphql-binding\node_modules\graphql-tools\dist\stitching\delegateToSchema.js:13:53)
at D:\dev\serverless-graphql\node_modules\graphql-binding\node_modules\graphql-tools\dist\stitching\delegateToSchema.js:7:71
at new Promise ()
at __awaiter (D:\dev\serverless-graphql\node_modules\graphql-binding\node_modules\graphql-tools\dist\stitching\delegateToSchema.js:3:12)
at delegateToSchemaImplementation (D:\dev\serverless-graphql\node_modules\graphql-binding\node_modules\graphql-tools\dist\stitching\delegateToSchema.js:57:12)
at Object.delegateToSchema (D:\dev\serverless-graphql\node_modules\graphql-binding\node_modules\graphql-tools\dist\stitching\delegateToSchema.js:53:12)
at Binding.Delegate.delegateToSchema (D:\dev\serverless-graphql\node_modules\graphql-binding\dist\Delegate.js:142:38)
at Binding. (D:\dev\serverless-graphql\node_modules\graphql-binding\dist\Delegate.js:64:44)
at step (D:\dev\serverless-graphql\node_modules\graphql-binding\dist\Delegate.js:32:23)
at Object.next (D:\dev\serverless-graphql\node_modules\graphql-binding\dist\Delegate.js:13:53)
at D:\dev\serverless-graphql\node_modules\graphql-binding\dist\Delegate.js:7:71
at new Promise ()
at __awaiter (D:\dev\serverless-graphql\node_modules\graphql-binding\dist\Delegate.js:3:12)
at Binding.Delegate.delegate (D:\dev\serverless-graphql\node_modules\graphql-binding\dist\Delegate.js:61:16)
at Binding.delegate (D:\dev\serverless-graphql\dist\service\src\graphql.js:1666:18)
at Object.queueItems (D:\dev\serverless-graphql\dist\service\src\graphql.js:1537:21)
at D:\dev\serverless-graphql\dist\service\src\graphql.js:2143:43
at Generator.next ()
at step (D:\dev\serverless-graphql\dist\service\src\graphql.js:2130:191)
at D:\dev\serverless-graphql\dist\service\src\graphql.js:2130:437
at new Promise ()
at D:\dev\serverless-graphql\dist\service\src\graphql.js:2130:99
at queueItems (D:\dev\serverless-graphql\dist\service\src\graphql.js:2148:7)
at resolveFieldValueOrError (D:\dev\serverless-graphql\node_modules\graphql\execution\execute.js:531:18)
at resolveField (D:\dev\serverless-graphql\node_modules\graphql\execution\execute.js:495:16)
at D:\dev\serverless-graphql\node_modules\graphql\execution\execute.js:364:18
at Array.reduce ()
at executeFields (D:\dev\serverless-graphql\node_modules\graphql\execution\execute.js:361:42)
at executeOperation (D:\dev\serverless-graphql\node_modules\graphql\execution\execute.js:289:122)
at executeImpl (D:\dev\serverless-graphql\node_modules\graphql\execution\execute.js:154:14)
at Object.execute (D:\dev\serverless-graphql\node_modules\graphql\execution\execute.js:131:229)
at doRunQuery (D:\dev\serverless-graphql\node_modules\apollo-server-core\dist\runQuery.js:122:42)
at D:\dev\serverless-graphql\node_modules\apollo-server-core\dist\runQuery.js:21:56
at
at process._tickDomainCallback (internal/process/next_tick.js:228:7)

What’s going on? I have tried reinstall all dependencies, reduced my schema etc… and get this error no matter what I do