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

Retrieve Items from Multiple Tables #1634

Open
4 tasks done
devgiant1925 opened this issue Sep 12, 2023 · 0 comments
Open
4 tasks done

Retrieve Items from Multiple Tables #1634

devgiant1925 opened this issue Sep 12, 2023 · 0 comments

Comments

@devgiant1925
Copy link

devgiant1925 commented Sep 12, 2023

Summary:

DynamoDB provides the option to retrieve items from multiple tables within one request as stated here, but I didn't find any similar function in Dynamoose so I'm raising this feature request here.

Code sample:

General

It could look something like this:

const [user, subscription, paymentMethod] = await multiTableBatchGet(
    { model: UserModel, hashKey: userId },
    { model: SubscriptionModel, hashKey: userId },
    { model: PaymentMethodModel, hashKey: userId }
);

Environment:

Operating System: MacOS
Operating System Version: 13.3
Node.js version (node -v): 16.15.1
NPM version: (npm -v): 8.11.0
Dynamoose version: 3.2.0

Other:

  • I have read through the Dynamoose documentation before posting this issue
  • I have searched through the GitHub issues (including closed issues) and pull requests to ensure this feature has not already been suggested before
  • I have filled out all fields above
  • I am running the latest version of Dynamoose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant