When i use method: strapi.db.queryBuilder() i’ll get QueryBuilder, but i can’t find docs for him, maybe some one have url on all QueryBuilder methods or maybe just arguments for methods.
Because i want to do something like this:
const knexSubQuery = subQuery
.where(where)
.join({ alias, targetField })
.join({ alias: userAlias, targetField: ‘users’ })
.select([${alias}.id
, ‘user.firstName’, ‘user.lastName’])
.getKnexQuery();
addFiltersClause(queryParams, { id: { $notIn: knexSubQuery } });
But it didn’t work, and i can’t find docs for this QueryBuilder
This topic has been created from a Discord post (1262780732699447378) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord