stephen
07/06/2018, 4:14 PMtype TaxonomyValue {
id: ID! @unique
identifier: String! @unique
profiles: [Profile!]! @relation(name: "ProfileTaxonomyValues")
}
type Profile {
id: ID! @unique
name: String
taxonomyValues: [TaxonomyValue!]! @relation(name: "ProfileTaxonomyValues")
}
I'm trying to retrieve records which match on multiple taxonomyValues
as below:
query {
profilesConnection(
where: { taxonomyValues_every: { identifier_in: ["value-a", "value-b"] } }
) {
aggregate {
count
}
edges {
node {
name
taxonomyValues {
identifier
}
}
}
}
}
It's only returning me records which have both taxonomyValues
(only value-a
and value-b
), not records which have value-a
and value-b
, as well as other ones. I basically want to match profiles on all requested taxonomyValue
, even if they have other values.
Any ideas?nilan
07/06/2018, 4:33 PMtaxonomy
node for this filter?