Supported Features
Tigris MongoDB compatibility enables transparent compatibility with native MongoDB client SDKs, drivers, and tools. Tigris provides its own SDK as well which is a feature-rich alternative to MongoDB client SDKs.
The section below lists the MongoDB operations that are supported while using MongoDB client SDKs with Tigris. We have also listed the equivalent operation using the Tigris SDKs.
We will add additional functionality based on the feedback we receive from the Tigris community.
CRUD operations
Create operations
The following MongoDB methods are supported to to insert documents into a collection:
MongoDB drivers | Tigris SDKs |
---|---|
db.collection.insertOne() | collection.insertOne() |
db.collection.insertMany() | collection.insertMany() |
Read operations
The following MongoDB methods are supported to read documents from a collection:
MongoDB drivers | Tigris SDKs |
---|---|
db.collection.findOne() | collection.findOne() |
db.collection.find() | collection.findMany() |
Update operations
The following MongoDB methods are supported to update documents of a collection:
MongoDB drivers | Tigris SDKs |
---|---|
db.collection.updateOne() | collection.updateOne() |
db.collection.updateMany() | collection.updateMany() |
db.collection.replaceOne() | collection.insertOrReplaceOne() |
Delete operations
The following MongoDB methods are supported to delete documents of a collection:
MongoDB drivers | Tigris SDKs |
---|---|
db.collection.deleteOne() | collection.deleteOne() |
db.collection.deleteMany() | collection.deleteMany() |
Aggregation operations
The aggregation operations in MongoDB can either be performed through aggregation pipelines or single-purpose aggregation methods.
Aggregation pipelines
The aggregation pipelines comprise one or more stages that process the documents.
The db.collection.aggregate()
MongoDB method is supported along with the
following stages:
MongoDB drivers |
---|
$count |
$group |
$match |
$sort |
Single-purpose aggregation methods
The supported single-purpose aggregation methods are shown below:
MongoDB drivers |
---|
db.collection.count() |
db.collection.distinct() |
Administration operations
The following MongoDB methods are supported:
MongoDB drivers | Tigris SDKs |
---|---|
create | db.createOrUpdateCollection() |
drop | db.dropCollection() |
dropDatabase | db.dropAllCollections() |
listCollections | db.listCollections() |
listDatabases | - |