GCoe
GCoe

Reputation: 885

Firebase snapshotchanges retrieve data

I'm trying to retrieve Firebase data ( Angularfire2 ) with the snapshotchanges observable. I was doing that ok with valuechanges but in this case the object keys are not retrieved.

But with snapshotchanges I got an array of "payload' objects. Until I know I need to use a map function in this case but the map function is not accepted for snapshotchanges.

Any thoughts on how to iterate on the retrieved objects in this case please ?

Upvotes: 1

Views: 895

Answers (1)

Benjamin Schröder
Benjamin Schröder

Reputation: 165

Just to close this down. I provided the comment to update the RXJS version to 6. Its a very similar problem to many other RXJS version problems.

Be careful and see into the migration guide to update your rxjs version from 5 to 6 Link: Migration guide for RXJS

Upvotes: 2

Related Questions