I have also tried using:
cards = await Card.find({ collectionId });
in the useShuffle condition, and it returned the expected data. So, the issue doesn’t seem to be with the condition itself.
I tested the query with another field, like userId, and it returned data correctly.