• Create store context, optionally passing overrides to defaults. By default the following are used:

    • logger : No-op logger (Don't log)
    • dynamoDB : Wrapper using default DynamoDB document client. Typically you'd only override this in unit / in-process tests. To use non default DynamoDB Document Client behavior then specify the documentClient parameter instead.
    • clock : Real clock based on system time (it can be useful to override this in tests)

    Parameters

    • options: Partial<StoreContext> = {}

      override any of the default context values. Can be explicitly set to {} to use default values.

    • Optional documentClient: DynamoDBDocumentClient

      override the DynamoDB document client used in the default DynamoDB wrapper. IGNORED if dynamoDB is provided in options

    Returns StoreContext

Generated using TypeDoc