Frederic G. Østby

Results 4 comments of Frederic G. Østby

Hi, Unfortunately limits don't quite work as expected on eager loading queries. The limit will limit the total number of related records being loaded not the number of records loaded...

A temporary solution could be something like this (I have not tested the code): ```php $latest = Manga::including(['chapters' => function($q) { $q->select(['*', new Raw('MAX(number)')]); $q->groupBy('manga_id'); }])->limit(24)->all(); ```

Seems like all types of queries against date fields are broken. ``` "year": { "type": "date", "format": "yyyy", "ignore_malformed": true }, ``` If I have a document indexed with `year`...