cosmo icon indicating copy to clipboard operation
cosmo copied to clipboard

expose core.operationContext{variables,rawContent}

Open robmyersrobmyers opened this issue 7 months ago • 1 comments

Component(s)

router

Is your feature request related to a problem? Please describe.

I can't access the operation variables in a custom module

Describe the solution you'd like

I'd like to expose operationContext.variables and operationContext.rawContent through the OperationContext interface.

Describe alternatives you've considered

I could try and obtain the request body through the request context and then re-parse that in the custom module.

Additional context

PR for illustration purposes

robmyersrobmyers avatar Apr 12 '25 13:04 robmyersrobmyers

WunderGraph commits fully to Open Source and we want to make sure that we can help you as fast as possible. The roadmap is driven by our customers and we have to prioritize issues that are important to them. You can influence the priority by becoming a customer. Please contact us here.

github-actions[bot] avatar Apr 12 '25 13:04 github-actions[bot]

Hi @robmyersrobmyers

We plan to refactor custom modules https://github.com/wundergraph/cosmo/pull/1063

I think this discussion might belong there.

Thanks,

The WunderGraph Team

CC: @StarpTech

Aenimus avatar May 06 '25 09:05 Aenimus

That's correct. @robmyersrobmyers please check the RFC and if it doesn't cover your use case, please comment on it.

StarpTech avatar May 06 '25 17:05 StarpTech

@robmyersrobmyers I will close this in favour of the RFC. If you feel the RFC doesn’t cover your needs, please do add it there.

Thanks!

The WunderGraph Team

Aenimus avatar May 06 '25 18:05 Aenimus