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

feat: add support for search queries with a GSI/LSI index #10

Merged
merged 2 commits into from
May 4, 2024

Conversation

sndpl
Copy link
Contributor

@sndpl sndpl commented May 2, 2024

This PR adds support for pagination when searching with a GSI/LSI index.
The lastEvaluated key contains the following depending on the kind of query you perform:

  • a normal search only the primary partition key and primary sort key are part of the lastEvaluated key.
  • a query on GSI, then the LastEvaluatedKey will be the compose of GSI partition key, GSI sort key, primary partition key and primary sort key.
  • a query on LSI, then the LastEvaluatedKey will be the compose of LSI sort key, primary partition key and primary sort key.

@supersoniko
Copy link
Owner

Thank you for your contribution to the package by adding support for GSI/LSI index queries.
I verified that the change is non breaking and will release this update today under version 3.1.0 today!

@supersoniko supersoniko merged commit 5ffa2af into supersoniko:master May 4, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants