Retrieve key and specific field value in Firebase

Asked

Viewed 250 times

0

Please, I would like to retrieve only the key and email from the list, ignoring the other "fields". I wish I had a list, without uploading all the values of all of us, like I’ve been doing lately.

How to achieve this with javascript ?

inserir a descrição da imagem aqui

1 answer

0


There is no such option. What you can do is map only these fields with a Json just for this purpose, and go on to record the records in both the complete structure and the one I am proposing. This way you will have two structures available for reading/writing.

  • Ricardo, I had already done it this way. I made a Function that keeps this data list updated. thanks.

Browser other questions tagged

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