firebase / firebase/snippets-web
FirebaseError: Expected type 'Ec', but it was: an object
Open
- Dominant language
- JavaScript
- Stars
- 802
- Forks
- 285
- PR merge metrics
- No merged PRs in 30d
Description
### someone explains to me why it is happening
```const querySnapshot = getDocs(collection(getFirestore(), "users"));
querySnapshot.forEach((doc) => {
console.log(`${doc.id} => ${doc.data()}`);
});
```
Contributor guide
Research direction
The only entry point provided is the inline JavaScript snippet using getDocs, collection, and getFirestore. Start by checking the asynchronous result from getDocs against the Firestore documentation and reproduce the reported FirebaseError. Done means the cause is established and the snippet can iterate over the query results without that error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- firebase, javascript
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100