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
-
I have a question about the
req
andres
objects in thecontext
variable.As far as I know,
nexus
uses anexpress
server, so I expected to access anexpress.Request
andexpress.Response
insidecontext
.Is there a reason the types extend the
HTTP.IncomingMessage
andHTTP.ServerResponse
respectively instead of theirexpress
counterparts?Related types in
/nexus/dist/runtime/schema/schema.d.ts
nexus version: 0.26.1
Beta Was this translation helpful? Give feedback.
All reactions