Postgres module

has_key

procedureextensionexperimentalsince 0.27.0Source

?: the jsonb document has the top-level key: Pg.has_key(it.settings, "beta").

has_key :: (document: $T, key: string) -> bool

?: the jsonb document has the top-level key: Pg.has_key(it.settings, "beta").

Parameters

document: $T
the jsonb column.
key: string
the top-level key.

Returns

bool

See also