encountered the need to filter the database query by child fields in the "to many" connection.
I found it in the documentation:
var query = new Query<Team>(context)
..where((t) => t.players.haveAtLeastOneWhere.yearsPlayed).lessThanOrEqualTo(1);
var teamsWithRookies = await query.fetch();
but haveAtLeastOneWhere has been removed from the framework
Is there any other way to do the same?
and I'm not sure it's right to leave the removed functionality in the documentation.
encountered the need to filter the database query by child fields in the "to many" connection. I found it in the documentation:
but haveAtLeastOneWhere has been removed from the framework Is there any other way to do the same? and I'm not sure it's right to leave the removed functionality in the documentation.