I have a subcollection 'favourites' under my 'users' collection and I would like to delete any of its documents by checking that the field 'prod_id' is isEqualTo prodId
THis is how I create the subcollection & document when a user taps the favourite button:
_usersCollectionReference
.doc(userId)
.collection('favourites')
.add({'prod_id': prodId});
Now, I want to be able to delete this document