persist persist : ( ( params ? , settings ? ) => CancellablePromise < void > ) = ...
Type declaration ( params ? , settings ? ) : CancellablePromise < void > Parameters Optional
params : unknown Optional
settings : Pick < { allowBatchRequest ?: boolean | Pick < { restNamespace : string ; restNonce ?: string ; restPathObfuscateOffset ?: string ; restQuery ?: object ; restRecreateNonceEndpoint ?: string ; restRoot : string ; } & { onQueueItemFinished ?: ( ( state ) => void ) ; signal ?: AbortSignal ; waitForPromise ?: Promise < void > ; } , "onQueueItemFinished" | "waitForPromise" > ; multipart ?: boolean | MultiPartOptions ; params ?: IRouteParamsInterface ; replayReason ?: ReplayReason ; request ?: IRouteRequestInterface ; sendReferer ?: boolean ; sendRestNonce ?: boolean ; settings ?: Partial < { body : ReadableStream < Uint8Array > ; bodyUsed : boolean ; cache : RequestCache ; credentials : RequestCredentials ; destination : RequestDestination ; headers : Headers ; integrity : string ; keepalive : boolean ; method : string ; mode : RequestMode ; redirect : RequestRedirect ; referrer : string ; referrerPolicy : ReferrerPolicy ; signal : AbortSignal ; url : string ; arrayBuffer ( ) : Promise < ArrayBuffer > ; blob ( ) : Promise < Blob > ; clone ( ) : Request ; formData ( ) : Promise < FormData > ; json ( ) : Promise < any > ; text ( ) : Promise < string > ; } > ; } & UrlBuilderArgs , "settings" | "allowBatchRequest" > Returns CancellablePromise < void >
When you pass
allowBatchRequest
, theafterDelete
is not called due to performance reasons. Please callafterDelete
andthis.collection.entries.delete
manually!