Closed raphaelcangucu closed 8 months ago
Awesome! I need this fix!
Amazing
Great, I also need this fix. Hope it can be merged soon.
@raphaelcangucu Thank you so much for the fantastic PR! I really appreciate it.
It seems like this is something we should have implemented from the beginning. I'd also like to consider removing metadata at the model level in the next major version.
We'll release it right after adding some tests and docs!
Thanks! When can we expect the release?
Assuming testing proceeds without any issues, I believe we can release it in a day or two!
Awesome, look forward to it!
Thanks @kitar , let me know if you need some help coding.
This PR will fix last evaluated key when the collection is empty and we can still have results at the dynamo.
When the result don't contain any itens, but we still have a lastEvaluatedKey at the Dynamo response, this means that we still has to confirm if we have or not values at the dynamo.
The function processMultipleItems at the processor was adding the meta at the collection items.
To solve this it was extended the Laravel Collection and created a new attribute to add the meta to the collection, so we can access at the lastEvaluatedKey from the collection instead of the item that don't exist.