APP ID: 41F831D7-1082-9EE4-FF6C-0E7ED3481C00
I have a table which is the users company details. Within this table it has a relation (1:N) of 3rd party warehouses it uses. The page I have developed lists all the warehouses in the database, and allows the user to select the warehouses they use by means of a toggle next to each warehouse. Hit update and it sends the new/modified list of warehouse to the database and updates the warehouse relations column. this side works fine.
When a user comes tot he page, the toggles should be preselected if they already have the warehouse in the warehouse relations column. this partially works. for some reason the api call only retrieves the first 10 warehouses in the warehouse relation column.
For example: user goes in and selects all 20 available warehouses, hits update and they get saved to the database in the warehouse relations column of the users company.
But when the user navigates back to this page, only the first 10 get retrieved, even though the database has 20 relations. I have checked this in the logs and the developer tools in chrome, its always the first 10.
here is the logic for the page.
Any tips on how to make sure all relations are called and not just the first 10? I cant seem to find how to increase the limit on the API call that pulls the relations.