I've been diving into the project outlined in Ben Awad's "Fullstack React GraphQL TypeScript Tutorial".
As I was looking through the index.ts file, a large portion of my code is highlighted in red.
Check out my code here
Whenever I hover over the code, I encounter the following error message:
Argument of type '{ schema: GraphQLSchema; context: ({ req, res }: ExpressContext) =>
MyContext; plugins: any[]; }' is not assignable to parameter of type
'Config<ExpressContext>'.
Type '{ schema: GraphQLSchema; context: ({ req, res }: ExpressContext) => MyContext;
plugins: any[]; }' is missing the following properties from type
'Config<ExpressContext>': logger, debug, cache, formatError, and 6 more.ts(2345)