99x / serverless-dynamodb-client

Serverless Dynamodb Client to automatically switch between AWS and Local instances
MIT License
74 stars 19 forks source link

Allow to use custom options #12

Open makaivelli opened 5 years ago

makaivelli commented 5 years ago

It would be handy to allow using custom options when constructing a DynamoDB object. For start it would be nice to support defining convertEmptyValues and port in serverless.yml.

bart commented 5 years ago

As far as I can see you can simply set it after you have initialized dynamodb like this:

const dynamoDb = require('serverless-dynamodb-client').doc
dynamoDb.options.convertEmptyValues = true