Using feathersJs/Knex and Postgresql.
The (simplified) SQL query is this:
SELECT * FROM projects WHERE team_members @> '{"members":[{"id": 1}]}';
How can I implement this request in feathers/knex service? Everything I tried throws a Bad Request
error.
I tried to use rawQuery but could not make it work. I tried with regular query but it use by default the =
operator instead of @>
(as it is normal).
I'm considering building a separate service on server but I'm wondering if there is no easier way to do it. I just started with feathersJs, I'm sure I'm missing something and it has to be very simple.