---
cases:
  - note: partialdocconstants/obj-all
    query: data.ex.foo = x
    modules:
      - |
        package partial.ex

        foo["bar"] := 0

        foo["baz"] := 1

        foo["*"] := [1, 2, 3] if {
        	input.foo = 7
        }
      - |
        package ex

        foo["bar"] := 0

        foo["baz"] := 1

        foo["*"] := [1, 2, 3] if {
        	input.foo = 7
        }

        bar contains "x"

        bar contains "y"

        bar contains "*" if {
        	input.foo = 7
        }
      - |
        package topdown_test_partial

        __result__ := _result if {
        	data.partial.ex.foo = _result
        }
    data: {}
    input_term: '{"foo": 7}'
    want_result:
      - x:
          "*":
            - 1
            - 2
            - 3
          bar: 0
          baz: 1
