RLMUpdateResult

@interface RLMUpdateResult : NSObject

The result of an updateOne or updateMany operation a RLMMongoCollection.

  • The number of documents that matched the filter.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSUInteger matchedCount;

    Swift

    var matchedCount: UInt { get }
  • The number of documents modified.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSUInteger modifiedCount;

    Swift

    var modifiedCount: UInt { get }
  • The identifier of the inserted document if an upsert took place.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) RLMObjectId *objectId;

    Swift

    var objectId: RLMObjectId? { get }