0👍
You have to check first db.collection('cartitems').where('user', '==', this.user.alias).get()
. Is it right or wrong? Then i think it’s not worked directly like where('user', '==', this.user.alias)
You should get first key and the you can compare it is way in firebase i hope You understand.
Source:stackexchange.com