@couchbase/lite-js
    Preparing search index...

    Type Alias PullConflictResolver

    PullConflictResolver: (
        local: CBLDocument | null,
        remote: CBLDocument | null,
    ) => Promise<CBLDocument | null>

    Callback that resolves a conflict between a local and remote (server) document revision, after a replicator pulls a conflicting revision from the server.

    Type Declaration

      • (
            local: CBLDocument | null,
            remote: CBLDocument | null,
        ): Promise<CBLDocument | null>
      • Parameters

        • local: CBLDocument | null

          The current local document, or null if it's deleted.

        • remote: CBLDocument | null

          The conflicting remote document, or null if it's deleted.

        Returns Promise<CBLDocument | null>

        The resolved document, or null if it should be deleted. You may return either local or remote. You may modify the properties to merge the two revisions.