Alan Boshier
03/16/2022, 9:07 AMarrayContaining(X1, ..., Xi, ..., Xn)
as I understand it means "match if and only if the returned array contains at least one instance of each `Xi`" , and allows other non-matching elements to appear in the returned array.
Is there a variant of this which says, every element of the returned array must match either X1
... or Xi
... or Xn
?Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Alan Boshier
03/16/2022, 10:15 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Alan Boshier
03/16/2022, 10:44 AMAlan Boshier
03/16/2022, 10:47 AMcontacts {
__typename: always lets us know what this is
... on PhoneContact { ... }
... on EmailContact { ... }
and if the provider always returns one of each type it supports arrayContaining will not fail.