exists
The exists action is used to check if documents exists matching a specified criteria:
tasks.lunaql
query({
from({
tasks: {
where(["created_at", "==", "2022-12"]);
exists!;
};
});
});This will check if there were tasks created in December 2022.