Open misog opened 3 years ago
Hi, the meta field in JSON response includes next_item object.
meta
next_item
There are multiple problems with this
config/cursor_paginator.php
Workarounds can be done such as removing/modifying the field in middleware (see https://laracasts.com/discuss/channels/laravel/globally-append-meta-data-to-api-resources?page=1#reply=445439) or creating ResourceCollection class.
However it would be nice to be able to disable next_item from config/cursor_paginator.php
Hi, the
meta
field in JSON response includesnext_item
object.There are multiple problems with this
config/cursor_paginator.php
Workarounds can be done such as removing/modifying the field in middleware (see https://laracasts.com/discuss/channels/laravel/globally-append-meta-data-to-api-resources?page=1#reply=445439) or creating ResourceCollection class.
However it would be nice to be able to disable
next_item
fromconfig/cursor_paginator.php