rxfire

How can I join two Firestore queries using rxfire and rxjs (OR query)

放肆的年华 提交于 2021-01-20 18:39:25
问题 The goal is simple: to join two firestore queries utilizing rxjs , rxfire , and the rnfirebase react native library. I've read multiple tutorials 1, 2 on joining queries, but they all fail with different errors. //Simple test for collectionData import { collectionData } from 'rxfire/firestore'; this.myQuery = this.props.docRef.collection(`messages`).where('read', 'array-contains', this.props.me.uid) collectionData(this.myQuery, 'id').subscribe(docs => console.log(docs)) //Fails with error:

How can I join two Firestore queries using rxfire and rxjs (OR query)

白昼怎懂夜的黑 提交于 2021-01-20 18:39:02
问题 The goal is simple: to join two firestore queries utilizing rxjs , rxfire , and the rnfirebase react native library. I've read multiple tutorials 1, 2 on joining queries, but they all fail with different errors. //Simple test for collectionData import { collectionData } from 'rxfire/firestore'; this.myQuery = this.props.docRef.collection(`messages`).where('read', 'array-contains', this.props.me.uid) collectionData(this.myQuery, 'id').subscribe(docs => console.log(docs)) //Fails with error:

Subscribe to a doc using Svelte / RxJs / RxFire. How can I update the subscription

拜拜、爱过 提交于 2020-02-06 06:08:28
问题 I use a derived store in the code below. It feels like a strange construct because I only use the derived construct for the dynamic $session dependency and to get the normData. But not with $norm. I use $norm only once to kick off the derived store. Nevertheless it seem to work fine. But I have to renew the subscription if the $session changes. Is it possible to update the RxFire / RxJs subscription without unsubscribing first? let normDocRef = null; let normData = null; let normSubscription

Subscribe to a doc using Svelte / RxJs / RxFire. How can I update the subscription

吃可爱长大的小学妹 提交于 2020-02-06 06:07:26
问题 I use a derived store in the code below. It feels like a strange construct because I only use the derived construct for the dynamic $session dependency and to get the normData. But not with $norm. I use $norm only once to kick off the derived store. Nevertheless it seem to work fine. But I have to renew the subscription if the $session changes. Is it possible to update the RxFire / RxJs subscription without unsubscribing first? let normDocRef = null; let normData = null; let normSubscription