我可以在firestore中添加和更新数据,也可以检索集合流并将其转换为对象列表,但我不能做的是仅检索一次集合并将其转换为对象列表。//从Firestore获取流 Stream<QuerySnapshot> getDataDateStream(String uid, int startDateTime, int endDateTimeusersDataCollection = Firestore.instance.collection('users').document(
如何将Flux<MyObject>直接转换为Mono<List<MyObject>>?我正在寻找来自RxJava的等价物Single<List<MyObject>> single = observable.toList()。使用阻塞操作符,我可以这样做:
val just: Mono<List<MyObject>> = Mono.just(flux.t