diegopamio / angular-sails-bind

An angular service to bind scope models to sailsjs models thru socket
MIT License
136 stars 25 forks source link

Weird pagination #37

Closed maikelohcfg closed 7 years ago

maikelohcfg commented 7 years ago

hello there

i used

$sailsBind.bind("resource", $scope);

in my project to listen to realtime updates via socket of resource model, but it only display the first 30 records, like it was paginating the results. This a default behavior or some king of pagination that sails do??

0x5e5e commented 7 years ago

Hi @maikelohcfg,

You probably don't care about the solution anymore, but in case you were still interested - this is a server-side setting in Sails in config/blueprints.js called defaultLimit which defaults to exactly 30 records. Modify that value to whatever you need (-1 brings up all records) .

maikelohcfg commented 7 years ago

thanks a lot for the answer i will take in consideration