removeJoin method

Sqler removeJoin(
  1. Join join
)

Removes a specific JOIN operation from the query by comparing SQL output.

join The JOIN operation to remove. Returns this to enable method chaining.

Example:

query.removeJoin(Join('orders', On([Condition(QField('users.id'), QO.EQ, QField('orders.user_id'))]))); // Removes this JOIN

Implementation

Sqler removeJoin(Join join) {
  _joins.removeWhere((e) => e.toSQL() == join.toSQL());
  return this;
}