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
Your REST API always returns the full list, so the @rest annotation can’t magically change that. If it could, you’d still have a problem, because the backend would return the full list, let's say 10000 items, and then @rest would filter away 9990 items on the client side. Then you'd need some way to access the remaining items. @rest() is meant as a small escape hatch for a few APIs, or as a stepping stone while converting the Backend to GraphQL. It can't fix having the wrong backend API. Does that make sense?
Obviously, you can always filter the results before displaying them — if this is just a “the UI doesn’t need more that 10 items here” sort of situation.
Apollo-link-rest just can’t invent the “limit” feature (there’s infinite other hypothetical features we could add there).
Hello, I Have a query like this
I want to get only 10 items from the
Items
, but I get the full list!Is This doable or not?
Thank you.
The text was updated successfully, but these errors were encountered: