Postgres module

json_path

procedure · 1 overloadsince 0.27.0Source

@?: the jsonpath matches: Pg.json_path(it.settings, "$.tags[*] ? (@ == \"x\")").

json_path :: (document: $T, path: string) -> bool

@?: the jsonpath matches: Pg.json_path(it.settings, "$.tags[*] ? (@ == \"x\")").

Parameters

document: $T
the jsonb column.
path: string
the jsonpath.

Returns

bool

See also