MCPcopy Index your code
hub / github.com/sequelize/sequelize / _transformStringAssociation

Method _transformStringAssociation

src/model.js:355–363  ·  view source on GitHub ↗
(include, self)

Source from the content-addressed store, hash-verified

353 }
354
355 static _transformStringAssociation(include, self) {
356 if (self && typeof include === 'string') {
357 if (!Object.prototype.hasOwnProperty.call(self.associations, include)) {
358 throw new Error(`Association with alias "${include}" does not exist on ${self.name}`);
359 }
360 return self.associations[include];
361 }
362 return include;
363 }
364
365 static _conformInclude(include, self) {
366 if (include) {

Callers 1

_conformIncludeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected