If contextDesignator does not return a designation, we could default to:
- for ensureRelationsLoaded, an empty array
- for contextSpecificVisibleProperties, the visible properties determined by the role
Currently, if the caller uses context designations in their specification of ensureRelationsLoaded or contextSpecificVisibleProperties, those context designations must be complete in the sense of covering all possible models with the given table name (otherwise an error is thrown, cf.
|
if (!Array.isArray(contextSpecificVisibleProperties)) { |
,
|
if (!Array.isArray(relationNames)) { |
).
If
contextDesignatordoes not return a designation, we could default to:- for
ensureRelationsLoaded, an empty array- for
contextSpecificVisibleProperties, the visible properties determined by the roleCurrently, if the caller uses context designations in their specification of
ensureRelationsLoadedorcontextSpecificVisibleProperties, those context designations must be complete in the sense of covering all possible models with the given table name (otherwise an error is thrown, cf.bookshelf-advanced-serialization/lib/index.js
Line 429 in 94afe94
bookshelf-advanced-serialization/lib/index.js
Line 501 in 94afe94