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

143
Views
How to update this field map "status" to "online"

Im new to firebase and I didn't understand to add the location to update the status from offline to online which is in map field. Refer pic belowenter image description here

I tried

db.collection('customers').document('B').update({
"machines": { "B1": {status: "online"} } }

but it doesn't work

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Your code replaces the entire machines field with the value you specify.

As explained in the doc, you can use the "dot notation" to reference nested fields within the document.

In your case:

db.collection('customers').document('B')
.update(
   { "machines.B1.status": "online"}
);
about 4 years ago · Juan Pablo Isaza Report
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!