elysiajs / elysia

Ergonomic Framework for Humans
https://elysiajs.com
MIT License
9.87k stars 211 forks source link

Context not contains cookie element on 1.0.0-rc.6 #521

Open coratgerl opened 6 months ago

coratgerl commented 6 months ago

What version of Elysia.JS is running?

1.0.0-rc.6

What platform is your computer?

Darwin 23.3.0 arm64 arm

What steps can reproduce the bug?

Just run an Elysia server, I also use the apollo plugin :

        this.server = new Elysia().get('/health', (context) => {
        context.set.status = 200
    })

    this.server.use(
            await apollo({
                schema,
                context: (context) => {
                                          // Context.cookie is undefined
                    console.log('context', context.cookie)
                    return context
                },
            }),
        )

What is the expected behavior?

cookie need to be present in context to set a cookie.

What do you see instead?

No response

Additional information

No response

danlannz commented 4 months ago

I have this issue also, is there any known workaround for this? it was working as expected in 0.8.17