yq/pkg/yqlib/doc
Tony b6285c5922 feat: add in operator (inverse of has)
Add the `in` operator to check if a value is present in a mapping (as a
key) or sequence (as an element). This mirrors jq's `in` operator which
is defined as the inverse of `has`.

Usage:
  . as $m | "key" | in($m)        -- check map key existence
  . as $m | "value" | in($m)      -- check array value membership
  .[] | select(.type | in(["a","b"])) -- filter by membership

Fixes #2322
2026-05-27 16:33:32 +08:00
..
operators feat: add in operator (inverse of has) 2026-05-27 16:33:32 +08:00
usage fix(json): preserve floats with trailing zero when encoding YAML to JSON (#2701) 2026-05-14 20:00:34 +10:00
.gitignore Added get key examples 2020-11-26 11:20:53 +11:00
notification-snippet.md Removing old version notice 2022-10-25 12:47:13 +11:00