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

decending sorting #711

Open
eirik-andersen opened this issue Feb 13, 2024 · 1 comment
Open

decending sorting #711

eirik-andersen opened this issue Feb 13, 2024 · 1 comment

Comments

@eirik-andersen
Copy link

thanks for the greate software to sync mongodb to elastic.

when using the findOne method in the transformation to do a lookup in the database, is it possible to have it select the last record and not the first?

@Joey0538
Copy link

If you have any field that you can use to determine the first record or the last record, something like timestamp maybe createdAt, _updatedAt etc. or based on your criteria for sorting, it should be easy to achieve what you want.

Are you using js or go plugin?

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

2 participants