Skip to content

Commit 775c3d5

Browse files
author
Alexander Miertsch
authored
Merge pull request #4 from heiglandreas/implementCountDocs
Adapt to updated version of DocumentStore
2 parents e1bfc5b + 4906260 commit 775c3d5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/InnerDocumentStore.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,4 +181,14 @@ public function filterDocs(string $collectionName, Filter $filter, int $skip = n
181181
{
182182
return $this->documentStore->filterDocs($collectionName, $filter, $skip, $limit, $orderBy);
183183
}
184+
185+
/**
186+
* @param string $collectionName
187+
* @param Filter $filter
188+
* @return int Number of docs
189+
*/
190+
public function countDocs(string $collectionName, Filter $filter): int
191+
{
192+
return $this->documentStore->countDocs($collectionName, $filter);
193+
}
184194
}

0 commit comments

Comments
 (0)