Back to Kysely

Complex where clause

site/docs/examples/where/0060-complex-where-clause.mdx

0.28.17916 B
Original Source

Complex where clause

For complex where expressions you can pass in a single callback and use the ExpressionBuilder to build your expression:

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

import { complexWhereClause } from './0060-complex-where-clause'

<div style={{ marginBottom: '1em' }}> <Playground code={complexWhereClause} /> </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: