-
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Is there currently a way to pass the Response into the current context from Bun/Elysia?
I'm migrating from Node + fastify and this was possible as outlined here
With the context signature in elysia-graphql-yoga this doesn't seem possible or is there a different way?
Context extends
| undefined
| MaybePromise<Record<string, unknown>>
| ((initialContext: YogaInitialContext) => MaybePromise<unknown>),I currently use it like:
import { context } from "./myCustomContext";
elysia
.use(
yoga({ schema, context }),
)
.listen(port);My use case is that I want to set or unset an HttpOnly cookie in a GraphQL resolver
sheijne
Metadata
Metadata
Assignees
Labels
No labels