Skip to content

Allow passing translateConfig to Dynamo client and doc client #542

Description

@bzang

Is your feature request related to a problem? Please describe.
In certain situations I need to use the Dynamodb option to removeUndefinedValues . Currently it doesn't seem like we can pass these options in the arc.tables().

Describe the solution you'd like
I'd like to be able to pass config parameters to the tables() call in order to pass these option to where the Client and DocClient are being instantiated. Maybe something like

const options = {
  docConfig: {
    marshallOptions: {
      convertEmptyValues: false,
      removeUndefinedValues: true,
      convertClassInstanceToMap: true,
    },
    unmarshallOptions: {
      wrapNumbers: true,
    }
  };

Describe alternatives you've considered
If it set up my own Dynamo client instance instead of using the arc provided tables() call, users would still have problems because we'd lose the advantages of the main arc functions package.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions