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
I have a question about the req and res objects in the context variable.
As far as I know, nexus uses an express server, so I expected to access an express.Request and express.Response inside context.
Is there a reason the types extend the HTTP.IncomingMessage and HTTP.ServerResponse respectively instead of their express counterparts?
Related types in /nexus/dist/runtime/schema/schema.d.ts
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a question about the
reqandresobjects in thecontextvariable.As far as I know,
nexususes anexpressserver, so I expected to access anexpress.Requestandexpress.Responseinsidecontext.Is there a reason the types extend the
HTTP.IncomingMessageandHTTP.ServerResponserespectively instead of theirexpresscounterparts?Related types in
/nexus/dist/runtime/schema/schema.d.tsnexus version: 0.26.1
Beta Was this translation helpful? Give feedback.
All reactions