Tribe
Getting the type of context
Thank you for diving this deep into this, just looking into what you provided now. So since in some of my middlewares I am adding new properties to the context, I dont need the incoming context to match the outgoing so I wanna go with the second Overwrite option I believe
10 replies
Getting the type of context
I am basically looking to create a type that gives me the shape of the context after it is extended by the middleware.
I am sure it’s possible considering the context is properly typed within mutations and queries. I have just been failing at creating it.
So in the example you linked I want a type that tells me the shape of the context including the user that was added into it by the middleware.
10 replies