envelop
envelop copied to clipboard
✨ FR: DOC: getEnveloped initialContext needs description
getEnveloped accepts an argument, usually the example is putting { req } in there. In the executor of nestjs there might already be a context build in that step so how would you put that in there? { req, ...context}. There is no clear discription on what the initial context is and what can be put in there, I still don't know why request is in there?! Does it have to do with what the plugins need to run or what graphql needs in the context?
Btw, using the contextFactory without putting correct initialContext in place, messes up the whole context in Nestjs.
looking for the same answer.
You can put whatever you want into the initial request, what you put in there depends on what you need.