SyncConfig
import type { SyncConfig } from "https://aws-api.deno.dev/v0.3/services/appsync.ts?docs=full";
Describes a Sync configuration for a resolver.
Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.
interface SyncConfig {
conflictDetection?: ConflictDetectionType | null;
conflictHandler?: ConflictHandlerType | null;
lambdaConflictHandlerConfig?: LambdaConflictHandlerConfig | null;
}§Properties
§
conflictDetection?: ConflictDetectionType | null
[src]The Conflict Detection strategy to use.
- VERSION: Detect conflicts based on object versions for this resolver.
- NONE: Do not detect conflicts when invoking this resolver.
§
conflictHandler?: ConflictHandlerType | null
[src]The Conflict Resolution strategy to perform in the event of a conflict.
- OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions don't match the latest version at the server.
- AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
- LAMBDA: Resolve conflicts with an Lambda function supplied in the
LambdaConflictHandlerConfig
.
§
lambdaConflictHandlerConfig?: LambdaConflictHandlerConfig | null
[src]The LambdaConflictHandlerConfig
when configuring LAMBDA
as the Conflict Handler.