Querying subset from angularfire2
问题 I need to get a subset from a firebase list. Let's say I have two sets: set1 = { dog:true, cat:true, snake:true, bull:true } and set2 = { dog:true, cat:true } What I need is to get the "in set1, but not in set2", in this case it would return: setresult = { snake:true, bull:true } I tried to achieve this with map: this.setresult = this.af.database.list('/set2/').map((animals) => { return animals.map((animal) => { if (auth.uid == _user.$key || af.database.object('set2/' + animal.$key) == null)