What's the equivalent of [listening to multiple documents in a collection](https://firebase.google.com/docs/firestore/query-data/listen#listen_to_multiple_documents_in_a_collection) using the `realtime-listener` service? I have a `news-feed` component where I'm trying to watch for new activities. Here's my `activities` computed property: ```js activities: computed('company', function() { return this.get('store').query('activity', { query: (ref) => ref.where(`company`, '==', this.get('company.id')).orderBy('createdAt', 'desc'); }); }) ``` That's fetching correctly current activities, but it's not updated live. How do I achieve that? I've tried the following: ```js this.get('realtime').subscribe(this, this.get('activities')); ``` It's obviously not working as the second parameter has to be a record, not an array.
What's the equivalent of listening to multiple documents in a collection using the
realtime-listenerservice?I have a
news-feedcomponent where I'm trying to watch for new activities. Here's myactivitiescomputed property:That's fetching correctly current activities, but it's not updated live. How do I achieve that? I've tried the following:
It's obviously not working as the second parameter has to be a record, not an array.