Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to run dynogels with version 3 of AWS #195

Open
supercsc opened this issue Feb 24, 2021 · 0 comments
Open

Is it possible to run dynogels with version 3 of AWS #195

supercsc opened this issue Feb 24, 2021 · 0 comments

Comments

@supercsc
Copy link

Dynogels runs by default with AWS Version 2. However it does allow you to pass in your own DynamoDB driver, and since AWS Version 3 is out I was wondering if it was possible to pass in a Version 3 dynamo driver. I have attempted to do this:

import dynogels from 'dynogels-promisified';
import {DynamoDB} from "@aws-sdk/client-dynamodb"; //Version 3 driver
const v3Dynamo: DynamoDB = new DynamoDB({ region: REGION });
dynogels.dynamoDriver(v3Dynamo); //Pass in our own driver

But I got the following error:

/node_modules/aws-sdk/lib/dynamodb/document_client.js:86
      self.service = new self.service.constructor.__super__(config);
                     ^
TypeError: self.service.constructor.__super__ is not a constructor

I also attempted this with the V3 DynamoDBClient but got the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant