Get Last Record From Ecto

From ElixirBlocks
Revision as of 20:25, 2 June 2023 by Admin (talk | contribs) (Created page with "<source> Repo.one(from x in MyApp.Model, order_by: [desc: x.id], limit: 1) </source> https://til.hashrocket.com/posts/388b0870c7-get-the-last-record-with-ecto")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Repo.one(from x in MyApp.Model, order_by: [desc: x.id], limit: 1)


https://til.hashrocket.com/posts/388b0870c7-get-the-last-record-with-ecto