---
cases:
  - note: undos/object-type
    query: data.generated.p = x
    modules:
      - |
        package generated

        p contains x if {
        	obj = {"a": {"x": 1, "y": {"v": 2}}, "b": {"x": 1, "y": null}, "c": {"x": 2, "y": {"v": 2}}}
        	{"x": x, "y": {"v": 2}} = obj[_]
        }
    data: {}
    want_result:
      - x:
          - 1
          - 2
    sort_bindings: true
