Is it possible to set mutually exclusive args? like:
type Query {
listings (sellerId: ID! | landlordId: ID!): [Listing]
}
I know that I can let both args as optional:
type Query {
listings (sellerId: ID, landlordId: ID): [Listing]
}
But that's not what I want, I want the client to necessarily pass either sellerId
or landlordId
Is there a way to accomplish this?