offer.where
Oferece as entradas do catálogo que atendem às suas condições.
Assinatura
offer.where(where: ContentWhere, opts?: { maxItems?: number; flag?: { by: string; map: Record<string, string> } }): ContentOfferParâmetros
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
where | ContentWhere | Obrigatório | As condições de campo que uma entrada deve atender. |
opts | { maxItems?: number; flag?: { by: string; map: Record<string, string> } } | Opcional | Ajustes extras, como maxItems para o máximo de entradas oferecidas. |
Retorna
ContentOffer A oferta, para passar a list.add ou list.addRow.
Exemplo
list.add(self, "pack", trinket, offer.where({ weight: { lte: 3 } }));
