Maybe a good idea to try https://vincit.github.io/objection.js/ 🤔

jpfong Author

I'm already using knex, so it won't be too difficult to add this

0 Likes
Mikolaj Kubera

It actually looks pretty awesome. Querying things is always great :)

const middleAgedJennifers = await Person.query()
  .select('age', 'firstName', 'lastName')
  .where('age', '>', 40)
  .where('age', '<', 60)
  .where('firstName', 'Jennifer')
  .orderBy('lastName');

Love it! 😎

0 Likes

Please sign in to leave a comment.