MCPcopy Create free account
hub / github.com/sequelize/sequelize-typescript / $get

Function $get

src/model/model/model.ts:85–90  ·  view source on GitHub ↗

* Returns related instance (specified by propertyKey) of source instance

(
    propertyKey: K,
    options?: AssociationGetOptions
  )

Source from the content-addressed store, hash-verified

83 * Returns related instance (specified by propertyKey) of source instance
84 */
85 $get<K extends keyof this>(
86 propertyKey: K,
87 options?: AssociationGetOptions
88 ): Promise<$GetType<this[K]>> {
89 return this['get' + capitalize(propertyKey as string)](options);
90 }
91
92 /**
93 * Counts related instances (specified by propertyKey) of source instance

Callers

nothing calls this directly

Calls 1

capitalizeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…