ckelley
06/17/2017, 4:43 PMquery {
user {
people(filter: {
OR: [{
notes_some: {
content_contains: "Sports"
}
}, {
name_contains: "Sports"
}, {
occupation_contains: "Sports"
}]
}) {
id
name
occupation
notes {
id
content
}
}
}
}
If I run a query with multiple search terms, is there a way for the server to tell me which field(s) matched?nilan
06/17/2017, 5:04 PMquery people {
user {
contentPeople: people(filter: {
notes_some: {
content_contains: "Sports"
}
}) {
... PeopleInfo
}
namePeople: people(filter: {
name_contains: "Sports"
}) {
... PeopleInfo
}
occupationPeople: people(filter: {
occupation_contains: "Sports"
}) {
... PeopleInfo
}
}
}
fragment PeopleInfo on People {
id
name
occupation
notes {
id
content
}
}