How to find nodes with a scalar predicate having values found during traversal

The right usage in this case with “value” is like this:

{
  steve as var(func: allofterms(name@en, "Steven")) {
    director.film {
      fn as name@en
    }
  }

  stevens(func: uid(steve)) {
    director.film @filter(eq(val(fn), "Into the Wind")){
      uid
      name@.
    }
  }
}

Response


{
  "data": {
    "stevens": [
      {
        "director.film": [
          {
            "uid": "0x3de19",
            "name@.": "Into the Wind"
          }
        ],
        "uid": "0x31ce2"
      }
    ]
  }