Lucid ORM Feature add #4628
anmirza786
started this conversation in
Ideas
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
-
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