* Add an `or` clause. * @param w - One or more where objects
(...w: (Where<MT> | Where<MT>[])[])
| 329 | * @param w - One or more where objects |
| 330 | */ |
| 331 | or(...w: (Where<MT> | Where<MT>[])[]): this { |
| 332 | let clauses: Where<MT>[] = []; |
| 333 | w.forEach(where => { |
| 334 | clauses = clauses.concat(Array.isArray(where) ? where : [where]); |
| 335 | }); |
| 336 | return this.add({or: clauses}); |
| 337 | } |
| 338 | |
| 339 | /** |
| 340 | * Add an `=` condition |
no test coverage detected