how to get last value knex in postgresql

Solutions on MaxInterview for how to get last value knex in postgresql by the best coders in the world

showing results for - "how to get last value knex in postgresql"
Elena
28 Feb 2018
1const getPoinLocationName = await db('profie').select(
2 db.raw('last_value("name") over(order by created_at desc) as name')
3)