envelop icon indicating copy to clipboard operation
envelop copied to clipboard

✨ FR: DOC: getEnveloped initialContext needs description

Open sschneider-ihre-pvs opened this issue 3 years ago • 2 comments

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.

sschneider-ihre-pvs avatar Oct 17 '22 14:10 sschneider-ihre-pvs

looking for the same answer.

kodeine avatar Nov 12 '22 17:11 kodeine

You can put whatever you want into the initial request, what you put in there depends on what you need.

n1ru4l avatar Nov 22 '22 09:11 n1ru4l