Postgres module

has_key

procedure · 1 overloadsince 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