You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently its not possible to insert headers from context in the router, like we see on Apollo. It requires a custom module, but would be great to have this feature in the pure config file.
Describe the solution you'd like
Etc reading user_id from context in config.yaml
version: '1'
headers:
all: # Rules for all origin requests
request:
- insert:
name: "User-ID"
from_context: "user_id"
Describe alternatives you've considered
Create a custom plugin/module that supports to read from context and insert the header.
Additional context
No response
The text was updated successfully, but these errors were encountered:
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.
No, its just an example. I have a bunch of headers - 6-7 values that I would like to read from the context and forward as header, like for apollo: https://www.apollographql.com/docs/graphos/routing/header-propagation - see section "Insert header from context". Might be against rules to link to Apollo from here, but I'll take my chances. :)
Currently I can't see thats possible to do with the cosmo-router without writing a custom module?
Component(s)
router
Is your feature request related to a problem? Please describe.
Currently its not possible to insert headers from context in the router, like we see on Apollo. It requires a custom module, but would be great to have this feature in the pure config file.
Describe the solution you'd like
Etc reading user_id from context in config.yaml
Describe alternatives you've considered
Create a custom plugin/module that supports to read from context and insert the header.
Additional context
No response
The text was updated successfully, but these errors were encountered: