Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

No, it is not possible to query a unique index directly in MongoDB. Unique indexes are created on a collection to ensure the uniqueness of the data, but they are not standalone entities that can be queried separately. To query data using a unique index, you need to query the collection that the index is associated with and use the index as part of the query criteria.