Skip to main content
QUERY
previewCardPredicates(applicability: Predicate, cardId: String!, evidenceConditions: [PredicateEvidenceConditionInput!], predicates: [Predicate!]!, sampleSize: Int!): PredicateSample

Arguments

applicability

Decides which sampled entries the predicates apply to. An entry that doesn't match it has applicable: false and every matches false. Null applies them to every entry.

cardId
String!
required

Raw id of the card definition (e.g. products), not the global CardDefinition.id.

evidenceConditions

Predicates, by index into predicates, to collect failure evidence for. Null collects none.

predicates
required

Predicates to test, at least one. Each sampled entry's matches has one result per item, in the same order. Together with applicability, at most 513 predicates and 1 MiB as JSON, and sampleSize times their count at most 10,000. Over a limit fails with BAD_USER_INPUT and a message starting PREVIEW_LIMIT_EXCEEDED:.

sampleSize
Int!
default:25

Number of entries to sample, 1 to 100. Default 25.

The sampled entries, in ascending entryId order.

evaluatedAt

When the sample was evaluated.

Query
Variables
Response