EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 448 forks source link

how to get count for a query #1820

Open mesuttalebi opened 3 years ago

mesuttalebi commented 3 years ago

How can I get count for a query? or check if a collection is empty?

as mentioned in this doc, there is a size property in QuerySnapShot but it is undefined when trying to use.

https://firebase.google.com/docs/reference/js/firebase.firestore.QuerySnapshot#size and

https://firebase.google.com/docs/reference/js/firebase.firestore.QuerySnapshot#size

are some properties and methods not exist in plugin? because I cannot found empty and size in source code also.