使用FirestoreConnect从集合中获取文档

时间:2020-05-21 11:33:03

标签: reactjs redux-firestore

我想通过ID从集合中获取确切的文档。我尝试过:

useFirestoreConnect([
    {
        collection: 'wydarzenie/'+event_id,
        storeAs: currentEventRedux
    }
])

但出现错误

FirebaseError: Invalid collection reference. Collection references must have an odd number of segments, but wydarzenie/f has 2

0 个答案:

没有答案