in is a scope — field on the base entity, childEntity.field, or * / childEntity.* for every indexed field of that entity. for is the term: a literal string, or a runtime variable such as { "var": "$q" }.{
"in": "title",
"as": "inTitle",
"for": {
"==": [
1,
1
]
}
}