How to use Reference in Firebase?

Asked

Viewed 16 times

0

I am training in a digital point hitting app, and I wanted to know how I could create a rule for each user to be able to register 4 daily point i would have the Users document and the Records document

Where document records would have:

  1. username_records => which user is responsible for these records

    day records => the day these records were made

    user_records => Index Array 4 (Total points per day)

The document User would have:

  1. id => The firebase generated ID

    username => The Name of the User

    email => The User’s Email Address

And I was wondering if it’s possible reference user_records at the id of user which is in the Users document and if possible, how could I do this ?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.