Skip to content Skip to sidebar Skip to footer

Typeerror: This.path.replace Is Not A Function At New Firestoredelete

Trying to remove the users`s data calling a function from app. 'use strict'; const functions = require('firebase-functions'); const firebase_tools = require('firebase-tools'); cons

Solution 1:

solution

const id = context.auth.uid;
   const path = `users/${id}`;

Solution 2:

As far as I can see from reading the code of the delete function, the path you pass in has to be a single string value of the collection or document to delete. The function will then delete all data under that collection or document.

Solution 3:

I was accidentally sending an entire object. If you come across this question, double check you're not making the same mistake.

Post a Comment for "Typeerror: This.path.replace Is Not A Function At New Firestoredelete"