Amplify JS API Documentation
    Preparing search index...

    Interface DataStoreConfig

    interface DataStoreConfig {
        authModeStrategyType?: AuthModeStrategyType;
        authProviders?: AuthProviders;
        conflictHandler?: ConflictHandler;
        DataStore?: {
            authModeStrategyType?: AuthModeStrategyType;
            authProviders?: AuthProviders;
            conflictHandler?: ConflictHandler;
            fullSyncInterval?: number;
            maxRecordsToSync?: number;
            storageAdapter?: StorageAdapter;
            syncExpressions?: SyncExpression[];
            syncPageSize?: number;
            errorHandler?(error: SyncError<Readonly<Record<string, any>>>): void;
        };
        fullSyncInterval?: number;
        maxRecordsToSync?: number;
        storageAdapter?: StorageAdapter;
        syncExpressions?: SyncExpression[];
        syncPageSize?: number;
        errorHandler?(error: SyncError<Readonly<Record<string, any>>>): void;
    }
    Index

    Properties

    authModeStrategyType?: AuthModeStrategyType
    authProviders?: AuthProviders
    conflictHandler?: ConflictHandler
    DataStore?: {
        authModeStrategyType?: AuthModeStrategyType;
        authProviders?: AuthProviders;
        conflictHandler?: ConflictHandler;
        fullSyncInterval?: number;
        maxRecordsToSync?: number;
        storageAdapter?: StorageAdapter;
        syncExpressions?: SyncExpression[];
        syncPageSize?: number;
        errorHandler?(error: SyncError<Readonly<Record<string, any>>>): void;
    }
    fullSyncInterval?: number
    maxRecordsToSync?: number
    storageAdapter?: StorageAdapter
    syncExpressions?: SyncExpression[]
    syncPageSize?: number

    Methods

    • Parameters

      • error: SyncError<Readonly<Record<string, any>>>

      Returns void