* Perform a RIGHT JOIN with another table or subquery * * @param source - An object with a single key-value pair where the key is the table alias and the value is a Collection or subquery * @param onCallback - A function that receives table references and returns the join condition * @re
(
source: TSource,
onCallback: JoinOnCallback<
MergeContextForJoinCallback<TContext, SchemaFromSource<TSource>>
>,
)
| 356 | * ``` |
| 357 | */ |
| 358 | rightJoin<TSource extends Source>( |
| 359 | source: TSource, |
| 360 | onCallback: JoinOnCallback< |
| 361 | MergeContextForJoinCallback<TContext, SchemaFromSource<TSource>> |
| 362 | >, |
| 363 | ): QueryBuilder< |
| 364 | MergeContextWithJoinType<TContext, SchemaFromSource<TSource>, `right`> |
| 365 | > { |
| 366 | return this.join(source, onCallback, `right`) |
| 367 | } |
| 368 | |
| 369 | /** |
| 370 | * Perform an INNER JOIN with another table or subquery |