Skip to content

Transform Uni of one class of object to an Uni of a different one #860

Answered by jponge
terrytyang asked this question in Q&A
Discussion options

You must be logged in to vote

You probably want to use .onItem().transform(item -> ...), see https://smallrye.io/smallrye-mutiny/getting-started/transforming-items so you can react to an item, and map it to something else.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@terrytyang
Comment options

Answer selected by terrytyang
Comment options

You must be logged in to vote
1 reply
@cescoffier
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants