You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So for this it's loading matching saved products in each of my lists. I want it to $limit to 4 saved products per list. But the actual behavior is it's limiting to 4 saved products total (across all lists). So any list after the first 4 products returned show as empty lists.
Am I doing something wrong or is this a bug?
The text was updated successfully, but these errors were encountered:
ericuldall
changed the title
$limit be applied against all items in context not each item in context
$limit being applied against all items in context not each item in context
Feb 17, 2024
It's not a bug in the loader nor something you are doing wrong. It's more of a misunderstanding of how the loader works and some of its limitations. It's important to understand how the loader turns your queries into an $in query. I think I actually have some updated branches/code that disallows the $limit.
But I see what you are going for there. I suppose I could rig up something for $limit with multi, but it won't be a true DB query.
I am away from the office this week. Please ping me next week and we can work more on this
I have the following loader:
So for this it's loading matching saved products in each of my lists. I want it to $limit to 4 saved products per list. But the actual behavior is it's limiting to 4 saved products total (across all lists). So any list after the first 4 products returned show as empty lists.
Am I doing something wrong or is this a bug?
The text was updated successfully, but these errors were encountered: