Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

216
Views
Delete a field from Firestore, with a variable key

I want to delete field by dynamic variable I tried to put the variable in [] like this:

var removeCapital = cityRef.update({
    [variable]: firebase.firestore.FieldValue.delete()
});

but it didn't work. Any other solutions, please? I think the problem is from the structure of the key it is like '0.maze.1.1' because when I tried the same method with key 'test' it worked.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!