CBLDocumentFragment

@interface CBLDocumentFragment : NSObject <CBLDictionaryFragment>

CBLDocumentFragment provides access to a document object. CBLDocumentFragment also provides subscript access by either key or index to the data values of the document which are wrapped by CBLFragment objects.

  • Checks whether the document exists in the database or not.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL exists;

    Swift

    var exists: Bool { get }
  • Gets the document from the document fragment object.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) CBLDocument *document;

    Swift

    var document: CBLDocument? { get }
  • Not available

    Declaration

    Objective-C

    - (nonnull instancetype)init;