I'm trying to put all different possible values of a key in different Firebase folders into an array.
E.g all possible values for "favourite_ice_cream_flavour"
projects
randstring123
favourite_ice_cream_flavour: chocolate
otherinfo: n.i
randstring345
favourite_ice_cream_flavour: cranberry
otherinfo: N.I
randstring789
favourite_ice_cream_flavour: chocolate
otherinfo: NI
With these values, the array concerning "favourite_ice_cream_flavour" should return
["chocolate", "cranberry"]
Note: chocolate only appears once.
What would be the most efficient way to go about this?