---
cases:
  - data: {}
    modules:
      - |
        package generated

        p = __local0__ {
          object.remove({"a": {"b": {"c": 2}}, "x": 123}, {"a": {"b": {"foo": "bar"}}}, __local1__)
          __local0__ = __local1__
        }
    note: objectremove/multiple keys object nested
    query: data.generated.p = x
    want_result:
      - x:
          x: 123
