RxSwiftCommunity / RxFirebase

RxSwift extensions for Firebase
MIT License
224 stars 66 forks source link

combine #29

Open NemoChen317 opened 4 years ago

NemoChen317 commented 4 years ago

how to combine two query path database

let ref = Database.database().reference() ref.child("users") .child("1") .rx .observeSingleEvent(.value) .subscribe(onNext: { snapshot in print("Value:(snapshot.value)") }).disposed(by: disposeBag)

I want to use snapshot value to query other path database can I extend for the programing?

thank you

mobiletoly commented 4 years ago

you should be using .flatMap for this