Convert Bookshelf Query From Strapi v3 To v4 🤔

  • Strapi Version: 4

Hello guys,

I’m currently in the process of converting my project from v3 to v4.
A code snippet that worked well in v3 unfortunately no longer works in v4. Can anyone give me a tip on how to write this piece in v4? :thinking:

        res = await strapi.query('delivery').model.query(qb => {
          qb.where((bd) => {
            bd.where('removed', false)
              .orWhere('removed', null)
          }).andWhere((bd) => {
          }).orderBy('id', 'DESC');

Thanks in advance