How to make query Sql(Postgres)

Hi @lepo,

I just did some digging for you, and I believe it is:

strapi.db.connection.context.raw(...)

Strapi uses knex.js for query building, which may have a built in helper function for what you are looking for.

All the best!

4 Likes