Set Cookies in apollo server azure functions

Sadman Sakib 51 Reputation points
2022-10-28T12:26:03.6+00:00

Hi, How to set cookies in apollo server azure functions? 255109-screenshot-1.png

I am trying this way but it's not working. & there are no docs/guides available for apollo server azure functions.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,518 questions
{count} votes

Accepted answer
  1. MayankBargali-MSFT 69,931 Reputation points
    2022-11-04T05:04:31.093+00:00

    @Sadman Sakib Sharing the discussion with the team internal and posting the update as updated here.

    After looking at the issue, the infrastructure, and the announcement from Apollo for this package, I believe Apollo is the correct organization to post this issue because Apollo is providing the server in this sample. It just happens to be running on an Azure Function. Additionally, when I look for a solution on Apollo, it looks like the ApolloServer dependency needs to be swapped out for an Apollo server for express dependency in order to successfully set the cookie.

    None of this is great news. I apologize for this.

    I believe the sample works in this repo without cookes and doesn't currently include cookies in the code. Moving forward with the Apollo dependency, we will re-evaluate its use based on this feedback.

    0 comments No comments

0 additional answers

Sort by: Most helpful