Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

combine #29

Open
NemoChen317 opened this issue Oct 22, 2019 · 1 comment
Open

combine #29

NemoChen317 opened this issue Oct 22, 2019 · 1 comment

Comments

@NemoChen317
Copy link

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
Copy link

you should be using .flatMap for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants