From 9f5453d950d547009096ad23c0588e652471f114 Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Fri, 6 Mar 2026 00:09:09 +0200 Subject: [PATCH] Document EF.Functions.JsonPathExists See https://github.com/npgsql/efcore.pg/issues/3733 --- conceptual/EFCore.PG/mapping/translations.md | 1 + conceptual/EFCore.PG/release-notes/11.0.md | 1 + 2 files changed, 2 insertions(+) diff --git a/conceptual/EFCore.PG/mapping/translations.md b/conceptual/EFCore.PG/mapping/translations.md index d9433e5b..dfec1c47 100644 --- a/conceptual/EFCore.PG/mapping/translations.md +++ b/conceptual/EFCore.PG/mapping/translations.md @@ -118,6 +118,7 @@ collection.Contains(item) | item IN collection enumValue.HasFlag(flag) | enumValue & flag = flag Guid.CreateVersion7() | [uuidv7()](https://www.postgresql.org/docs/current/functions-uuid.html) (added in 10 when targeting PG18, client-evaluated otherwise) 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 +EF.Functions.JsonPathExists(json, path) | [JSON_EXISTS(json, path)](https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-SQLJSON-CHECK) (added in 11) nullable.GetValueOrDefault() | coalesce(nullable, 0) nullable.GetValueOrDefault(defaultValue) | coalesce(nullable, defaultValue) diff --git a/conceptual/EFCore.PG/release-notes/11.0.md b/conceptual/EFCore.PG/release-notes/11.0.md index 53166ad3..7051f425 100644 --- a/conceptual/EFCore.PG/release-notes/11.0.md +++ b/conceptual/EFCore.PG/release-notes/11.0.md @@ -89,4 +89,5 @@ For more details, see the [temporal constraints documentation](../misc/temporal- ## Other new features +* 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. * 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!