Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to retrieve distinct items from Firebase database?

I'm writing an Android app and I need to retrieve all the distinct values of the field 'brand' from the Firebase Database given below. How do I do that? my firebase database

like image 996
Judy T Raj Avatar asked Nov 09 '16 07:11

Judy T Raj


1 Answers

The only way around was to create a new tree that solely stored distinct brands.

like image 71
Judy T Raj Avatar answered Oct 14 '22 07:10

Judy T Raj