-
Is it possible to save/update using reactive objects in the function arguments of reactive repositories? Example: I would like to be able to save an entity of class import com.mydomain.entity.User
import io.micronaut.data.model.query.builder.sql.Dialect
import io.micronaut.data.r2dbc.annotation.R2dbcRepository
import io.micronaut.data.repository.reactive.ReactiveStreamsPageableRepository
import org.reactivestreams.Publisher
@R2dbcRepository(dialect = Dialect.POSTGRES)
interface UserRepository: ReactiveStreamsPageableRepository<Long, User> {
fun save(user: Publisher<User>): Publisher<User>
} This is extremely useful for use in conjunction with reactive controllers, which can accept function arguments using |
Beta Was this translation helpful? Give feedback.
Answered by
dstepanov
Mar 2, 2023
Replies: 1 comment 1 reply
-
It's not possible right now. Please create an issue. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
averri
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's not possible right now. Please create an issue.