Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Does await really make sense in db.collection('rooms').doc(); ? #33

Open
multimanic opened this issue Mar 26, 2021 · 0 comments
Open

Does await really make sense in db.collection('rooms').doc(); ? #33

multimanic opened this issue Mar 26, 2021 · 0 comments

Comments

@multimanic
Copy link

const roomRef = await db.collection('rooms').doc();

According to the docs, the doc() method doesn't return a promise. So why the await in this line?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant