With the term
index the functions allofterms
and anyofterms
find strings
that match all of the listed terms or any one of the listed terms. Previous
queries in the tour used these searches.
Try both options and note the difference in the query results.
{
linesA: queryLine(filter: { line: { allofterms: "Smash Hulk" } }) {
line
by {
name
}
in {
name
released
}
}
linesB: queryLine(filter: { line: { anyofterms: "Hulk Banner" } }) {
line
by {
xid
}
in {
id
}
}
}
5.3 Term search