lets say I have
@Entity()
class Order {
int id;
final item = ToOne<Item>();
final customer = ToOne<Customer>();
}
@Entity()
class Item {
int id;
int price;
@Backlink()
final orders = ToMany<Order>();
}
How to query filter the orders based on the items price. I know I can query the items and get the backlink orders but is it possible the other way around? eg:
final orders = store.box<Order>().query(Order_.item.price < 100).build().
The docs says filter data even across relations but I couldn't find a way to do it.