firestore-react icon indicating copy to clipboard operation
firestore-react copied to clipboard

support multiple collections

Open adamb opened this issue 6 years ago • 1 comments

Is it possible to use multiple collections? Something like this? It doesn't work though but there must be another way.

const AppWithData = createContainer(App, (db) => {
return {
  users: db.collection('users');
  results: db.collection('results')
  }
})

adamb avatar Mar 26 '18 17:03 adamb

Pretty sure firestore-react can only use one collection.

Looking into https://github.com/green-arrow/react-firestore which seems a bit more flexible but similar.

adamb avatar Mar 28 '18 12:03 adamb