Set Cookies in apollo server azure functions

Hi, I am using apollo server is azure functions. I am trying to create cookies but it’s not working. What is the proper way to create cookies?

Here is my code

It isn’t throwing any errors but not working either. I need some help