Answer the question
In order to leave comments, you need to log in
How to delete record from Firebase by specific field?
There is a database structure:
I want to delete everything
records, by categoryId. I want code like this:
import firebase from "firebase/app"
async deleteCategory({dispatch, commit}, cat_id) {
const uid = await dispatch('getUid') // получаю конкретного пользователя
await firebase.database().ref(`users/${uid}/records`).WHERE('categoryId' === cat_id)
}
where()and even nothing like that, how to be?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question