dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 377 forks source link

Add Limit/Offset to Associate Accessers #550

Closed toddpi314 closed 10 years ago

toddpi314 commented 10 years ago

The hasMany api is good but model accessors really could use a Limit/Offset chain. So, the feature request would be: Offer an auto accessor that returns the query strategy. This would allow us to extend with the Chains and call 'run' when we are ready for action!

Keep up the good work!

toddpi314 commented 10 years ago

Ignore This. Found the api with the following example:

// Model methods Person.findByPets({ /* options */ }) // returns ChainFind object