-- in.cue --
root: input: foo: {
	metadata: name: *"foo" | string
	id: "id-\(metadata.name)"
	#deps: [string]: _
	#deps: root: {}
	spec: replicas: 1
}
{root.input.foo.#deps}
-- out/compile --
--- in.cue
{
  root: {
    input: {
      foo: {
        metadata: {
          name: (*"foo"|string)
        }
        id: "id-\(〈0;metadata〉.name)"
        #deps: {
          [string]: _
        }
        #deps: {
          root: {}
        }
        spec: {
          replicas: 1
        }
      }
    }
  }
  {
    〈1;root〉.input.foo.#deps
  }
}
