Saxonberg Server API
    Preparing search index...
    AroundSaveFn: (
        collection: string,
        doc: Record<string, unknown>,
        next: (doc: Record<string, unknown>) => Promise<string>,
    ) => Promise<string>

    Around-save hook signature. The hook receives the doc plus a next callback that performs (or further dispatches) the actual write.

    Type Declaration

      • (
            collection: string,
            doc: Record<string, unknown>,
            next: (doc: Record<string, unknown>) => Promise<string>,
        ): Promise<string>
      • Parameters

        • collection: string
        • doc: Record<string, unknown>
        • next: (doc: Record<string, unknown>) => Promise<string>

        Returns Promise<string>