$ open source · GPL-3.0 — need a commercial license? imqueue.com →

query.overrideJoin() function

Traverses given query object, lookups for includes matching the given arguments of include options and overrides those are matching by model and alias with the provided option.

Signature:

export function overrideJoin(queryOptions: FindOptions | CountOptions, ...options: IncludeOptions[]): FindOptions | CountOptions;

Parameters

Parameter

Type

Description

queryOptions

FindOptions | CountOptions

Query whose includes are to be overridden.

options

IncludeOptions[]

Include options to apply, matched by model and alias.

Returns:

FindOptions | CountOptions

The same query options.