This Sails.js hook extends the Sails ORM with polymorphic associations, deep population, and inclusive population criteria for Waterline. Version 1.0.2 adds dynamic attribute methods and soft deletes. Unlike standard Sails associations, it allows wildcard polymorphic populations (populate('*')), deep nested populations (populate('home.occupants.statuses.*')), and conditional deep filtering (& operator). It also provides wildcard data extraction via sails.hooks.deeporm.wild.get(). Development is intermittent, with no recent releases.
npm install sails-hook-deep-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates install, model definitions for polymorphic associations, deep population, and wildcard data extraction.
Ensure all models use the same attribute name (e.g., 'affiliated') in their 'via' association.
Use populate('home.occupants.statuses.*') for deep, and use '&' for inclusive: populate('home.occupants&state.statuses&phones.*&network').Use standard Sails model methods or manually define them.
Use specific paths or add criteria to limit results.
Ensure sails-hook-deep-orm is installed and Sails is lifted with the hook loaded.
Access the hook only after Sails has lifted (e.g., in controllers or after 'ready' event).
Verify the model associations exist and match the dot-path exactly; use '&' for inclusive criteria as documented.
No dependency data recorded yet.