here is my code to check a doc
is there in the collections
this.shopCollection = this.afs.collection<Shop>('shops', ref => {
return ref.where('fulladdress', '==', myString)
});
i don't know why i can't use .then()
and .catch()
with this method. When i pass a string to query and if no result found how i know?
I am using angularfire2
version ^5.0.0-rc.1
with angular ^4.2.4
and firebase ^4.5.0
.
Please help.