Skip to content

Commit 4906260

Browse files
committed
Adapt to updated version of DocumentStore
This adds the countDocs function to adapt to the updated version of the DocumentStore interface
1 parent e1bfc5b commit 4906260

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)