Given a schema (snapshot) of ``` type TaxonomyValu...
# orm-help
s
Given a schema (snapshot) of
Copy code
type 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:
Copy code
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?
n
Can you formulate an english sentence of the filter condition you would like to express? Can you provide a positive and a negative example for a
taxonomy
node for this filter?