Skip to content

Commit 768aed0

Browse files
authored
Document EF.Functions.JsonPathExists (#449)
See npgsql/efcore.pg#3733
1 parent 123fe66 commit 768aed0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

conceptual/EFCore.PG/mapping/translations.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ collection.Contains(item) | item IN collection
118118
enumValue.HasFlag(flag) | enumValue & flag = flag
119119
Guid.CreateVersion7() | [uuidv7()](https://www.postgresql.org/docs/current/functions-uuid.html) (added in 10 when targeting PG18, client-evaluated otherwise)
120120
Guid.NewGuid() | [gen_random_uuid()](https://www.postgresql.org/docs/current/functions-uuid.html), or [uuid_generate_v4()](https://www.postgresql.org/docs/current/uuid-ossp.html) from [`uuid-ossp`](https://www.postgresql.org/docs/current/uuid-ossp.html) when targeting pre-PG13
121+
EF.Functions.JsonPathExists(json, path) | [JSON_EXISTS(json, path)](https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-SQLJSON-CHECK) (added in 11)
121122
nullable.GetValueOrDefault() | coalesce(nullable, 0)
122123
nullable.GetValueOrDefault(defaultValue) | coalesce(nullable, defaultValue)
123124

conceptual/EFCore.PG/release-notes/11.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,5 @@ For more details, see the [temporal constraints documentation](../misc/temporal-
8989

9090
## Other new features
9191

92+
* Added support for the new EF Core `EF.Functions.JsonPathExists()` function, which translates to [SQL/JSON `JSON_EXISTS`](https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-SQLJSON-CHECK). This works on scalar string columns as well as on complex and owned JSON properties.
9293
* Added `EF.Functions.IntersectsBbox(geom1, geom2)` for expressing [the PostGIS `&&` operator](https://postgis.net/docs/geometry_overlaps.html). Thanks to [@bjornharrtell](https://github.com/bjornharrtell) for this contribution!

0 commit comments

Comments
 (0)