Adding custom methods to proxy services #8513
Unanswered
tonisostrat
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Consider the following service which is backed by a standard "rest" type datasource:
I would like to add a new method to this service,
bar: () => Promise<string>;
which in essence callsfoo()
, takes the value, transforms it (string[] -> string
) and then returns it. What would be the "correct" way to go about doing that, if possible at all?Beta Was this translation helpful? Give feedback.
All reactions