RLMUpdateResult

Objective-C


@interface RLMUpdateResult : NSObject

Swift

@_nonSendable(_assumed) class RLMUpdateResult : NSObject, @unchecked Sendable

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 }
  • Deprecated

    Use documentId instead, which support all BSON types

    The identifier of the inserted document if an upsert took place and the document’s primary key is an ObjectId.

    Declaration

    Objective-C

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

    Swift

    var objectId: RLMObjectId? { get }
  • The identifier of the inserted document if an upsert took place.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) id<RLMBSON> documentId;

    Swift

    var documentId: (any RLMBSON)? { get }