Skip to content

applyOps Support

Latest
Compare
Choose a tag to compare
@mudge mudge released this 07 Jan 13:30
· 3 commits to master since this release

This release adds support for the applyOps command which contains an array of Operations to apply at once:

Operation::ApplyOps {
    /// A unique identifier for this operation.
    id: i64,
    /// The time of the operation.
    timestamp: DateTime<UTC>,
    /// The full namespace of the operation including its database and collection.
    namespace: String,
    /// A vector of operations to apply.
    operations: Vec<Operation>,
}

Install by adding the following to your Cargo.toml:

oplog = "0.2.0"

Full API documentation can be found here.