To query if there are some values less than a certain value, or there are no records, is the best way to do this with an OR with “some” and “every” + “is_empty”? Is there a shorter way to do this?
OR: [
{
stories: {
some: {
status: {
value: {
lt: 5
}
}
}
}
}
{
stories: {
every: {
id: {
is_empty: true
}
}
}
}
]
This works because of the logic of some and every, but is there a way to query if there are no stories directly?