Skip to content

Commit

Permalink
Mention JSON support in expressions page
Browse files Browse the repository at this point in the history
  • Loading branch information
simolus3 committed Nov 27, 2023
1 parent 434982a commit 99bb9e0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/pages/docs/Dart API/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ bitwise operations:

{% include "blocks/snippet" snippets = snippets name = 'bitwise' %}

## Nullability
## Null checks {#nullability}
To check whether an expression evaluates to `NULL` in SQL, you can use the `isNull` extension:

```dart
Expand Down Expand Up @@ -131,6 +131,12 @@ select(animals)..where((a) => a.amountOfLegs.isIn([3, 7, 4, 2]);

Again, the `isNotIn` function works the other way around.

## JSON

Support for common JSON operators is provided through `package:drift/extensions/json1.dart`.
This provides things like `jsonExtract` to extract fields from JSON or `jsonEach` to query
nested JSON structures. For more details, see the [JSON support]({{ 'select.md#json-support' | pageUrl }}) section on the page about selects or [this more complex example]({{ '../Examples/relationships.md#with-json-functions' | pageUrl }}).

## Aggregate functions (like count and sum) {#aggregate}

[Aggregate functions](https://www.sqlite.org/lang_aggfunc.html) are available
Expand Down

0 comments on commit 99bb9e0

Please sign in to comment.