I am using spring-cloud-gcp-starter-data-firestore
for accessing Google Cloud Firestore in my Java Spring application.
Currently, my entity looks like this:
public class Subscription {
public String userId;
public String companyId;
// other properties
}
However, I obtain the userId
and companyId
via a reactor.core.publisher.Mono
in org.springframework.security.core.context.ReactiveSecurityContextHolder
.
How can I persist both properties which are nested inside Mono
s without resorting to Mono#block
?