how to get last value knex in postgresql code example
Example: how to get last value knex in postgresql
const getPoinLocationName = await db('profie').select(
db.raw('last_value("name") over(order by created_at desc) as name')
)
const getPoinLocationName = await db('profie').select(
db.raw('last_value("name") over(order by created_at desc) as name')
)