I want to make a service that checks if a Mongo repository is up and running.
What would be the equivalent of SELECT 1 FROM DUAL
from Oracle for a quick select?
I'm using Spring Data (org.springframework.data.mongodb.core.query.Query
class). I would like not to use an existing collection in the database for this check, e.g, if possible, I would like not to count elements from a collection.