Back to Kysely

OR where

site/docs/examples/where/0040-or-where.mdx

0.28.17895 B
Original Source

OR where

To combine conditions using OR, you can use the expression builder. There are two ways to create OR expressions. Both are shown in this example:

import { Playground } from '../../../src/components/Playground'

import { orWhere } from './0040-or-where'

<div style={{ marginBottom: '1em' }}> <Playground code={orWhere} /> </div>

:::info[More examples] The API documentation is packed with examples. The API docs are hosted here, but you can access the same documentation by hovering over functions/methods/classes in your IDE. The examples are always just one hover away!

For example, check out these sections: