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

133
Views
Attempting to set a custom key and value in a Realtime Database

I'm attempting to do the following in Firebase Real Time Database. Set a key and value:

/authUsers/
{uidSetByMe: 'Custom value"}

The code I'm attempting it with is:

var admin = require("firebase-admin");
admin.database().ref(`/authUsers`).update({ [userRecord.uid]: userData.uid })

The above gives no error it just doesn't work. I also tried: push

admin.database().ref(`/authUsers`).push({ [userRecord.uid]: userData.uid })

How can I achieve this?

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

0

You can pass the value you want to a child call:

admin.database().ref('authUsers').child(userRecord.uid).set(userData.uid);
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!