Javascript RxJS&;Firebase:在一条流上运行,而不是启动另一条流

Javascript RxJS&;Firebase:在一条流上运行,而不是启动另一条流,javascript,typescript,firebase,firebase-realtime-database,rxjs,Javascript,Typescript,Firebase,Firebase Realtime Database,Rxjs,我希望通过对现有流中的子节点进行操作,而不是启动新节点,将Firebase数据库节点值分配给变量。所以不是 (`threads/${threadId}/posts/${postId}`) .subscribe(post => this.body = post.body) 类似于 (`threads/${threadId}/posts`) .subscribe(posts => { //Get the post with the key that correlates to

我希望通过对现有流中的子节点进行操作,而不是启动新节点,将Firebase数据库节点值分配给变量。所以不是

(`threads/${threadId}/posts/${postId}`)
.subscribe(post => this.body = post.body)
类似于

(`threads/${threadId}/posts`)
.subscribe(posts => {
    //Get the post with the key that correlates to postId
    //Assign the value of its body property to a string variable
})
有什么想法吗