Replies: 1 comment 2 replies
-
Hey @anmirza786! 👋🏻 We cannot define magically what order needs to be done to decide which item is the last one. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, Guys hope you are doing well,
i just want to ask something is there any method to get the last or the latest entry of the table
means just like .first() there should be a .last() method,
its just a suggestion
e.g: Modal.query().where('field',fieldValue).last()
in stead i have to do this:
Modal.query().where('field',fieldValue).orderBy('id','desc').first()
Beta Was this translation helpful? Give feedback.
All reactions