-
Trying to append a property to the result but I'm not having much luck. Looking at the Only One Stream Docs I thought my custom exchange was valid, (referenced for the mapping of resultOps, not the shared/only one stream) — this is my first custom exchange and it looks like I've missed something. Any help is appreciated! 🙏 Custom Exchange
Exchanges
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Where are you trying to access the custom addition from? The exchange does look correct but it's worth noting that you'll have to guide yourself by the TypeScript types. We don't guarantee arbitrary properties on operations or results to be passed through. Generally speaking, we don't want this to happen, so it's safer to extend the operation on your result by making a copy of it using |
Beta Was this translation helpful? Give feedback.
Where are you trying to access the custom addition from? The exchange does look correct but it's worth noting that you'll have to guide yourself by the TypeScript types. We don't guarantee arbitrary properties on operations or results to be passed through. Generally speaking, we don't want this to happen, so it's safer to extend the operation on your result by making a copy of it using
makeOperation
and adding your own metadata on using a property onoperation.context