Open NemoChen317 opened 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
you should be using .flatMap for this
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