I am building an application with firebase, got a query hence bringing it to this forum. The data is organised in the following pattern
Favourite
--> Email Provider
--> email Id
- key (e.g. -K_EL-PS-1FJ-Dz2kqV7)
-- attr1
-- attr2
-- attr3
-- attr4
Now Email Provider and Email ID changes for each user. There can be multiple records (favourites) for each combination. Now I would like to get all the records for Email provider and email ID combination where attr2="abc". Similarly, I would like to get the all the record for the same combination when attr3="cde". I can get his working, however getting a warning (FIREBASE WARNING: Using an unspecified index. Consider adding ".indexOn"). I can understand and appreciate the warning. Question is, how to specify the index in this scenario. I know the first level element ("Favourite"), not the second and third level element. Appreciate any help.
Kind Regards