You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Writing any of these methods will through a TypeError of Argument of type 'Request<{}, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'. Property 'param' is missing in type 'Request<{}, any, any, ParsedQs, Record<string, any>>' but required in type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
app.all("/graphql",createHandler({ schema }));app.all("/graphql",(req,res,next)=>createHandler({ schema,context: (req)=>({ req, res })})(req,res,next));
However the same code in JavaScript runs without any errors.
Update: After searching, I found that maybe [email protected] has conflicts with the current API. graphql-http is using [email protected] which is old, I will fix this :)
The text was updated successfully, but these errors were encountered:
Writing any of these methods will through a TypeError of
Argument of type 'Request<{}, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'. Property 'param' is missing in type 'Request<{}, any, any, ParsedQs, Record<string, any>>' but required in type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
However the same code in
JavaScript
runs without any errors.Update: After searching, I found that maybe
[email protected]
has conflicts with the current API.graphql-http
is using[email protected]
which is old, I will fix this :)The text was updated successfully, but these errors were encountered: