I have this query:
collection.aggregate([
{ $match:{ "card.discovery": true } }
{ $sample: { size: 4 } }
]);
And it works because I need to get 4 random entries from that collection, but card.discovery can be true or null, and this obviously only returning documents with card.discovery set to true.
How can I filter the documents so that card.discovery can be or true or null?