Group
The Group
class represents a collection group in the database.
You access the groups using the groups.
→ Read more about the collection groups
→ Read more about the groups
function
→ Collection group on the Firebase Docs website
type
The entity type.
name
The group name.
all
The method allows to get all documents in the collection:
→ Read more about the all
method
query
The method allows to query documents in the collection:
→ Read more about the query
method
count
The method allows counting documents in the collection:
→ Read more about the count
method
sum
The method enables summing the collection field values:
→ Read more about the sum
method
average
The method allows to calculate the average of collection field values:
→ Read more about the sum
method
as
⚠️ Available starting with v10.7.0
The method resolves Typesaurus.SharedGroup
if the model extends the given type. Otherwise, it resolves unknown
preventing the usage of incompatible models:
It allows sharing functionality across the db entities in a type-safe way.