List of usage examples for com.mongodb.client MongoCollection countDocuments
long countDocuments(ClientSession clientSession);
From source file:io.lumeer.storage.mongodb.dao.collection.MongoDataDao.java
License:Open Source License
@Override public long getDataCount(final String collectionId, final SearchQuery query) { final MongoCollection<Document> collection = dataCollection(collectionId); return collection.countDocuments(createFilter(collectionId, query)); }