[REQUIRED] Environment info
firebase-tools:
13.6.1
Platform:
macOS
[REQUIRED] Steps to reproduce
- Create a Firebase project with a named database called
dev
- Create a v2 Firebase Function for
onDocumentCreated
- Create a Document on the
dev
database at the path you defined your function for
- Use the
snapshot.ref.firestore
accessor and check whether it's pointing to the dev
database
[REQUIRED] Expected behavior
The database name should be dev
[REQUIRED] Actual behavior
The database name is (default)
If you actually try to use the ref to delete it, it will yell at you and tell you you're trying to access a different database.
For instance try, snapshot.ref.delete()
.