MCPcopy
hub / github.com/sequelize/sequelize / _findField

Method _findField

lib/dialects/abstract/query-generator.js:2405–2417  ·  lib/dialects/abstract/query-generator.js::QueryGenerator._findField
(key, options)

Source from the content-addressed store, hash-verified

2403 }
2404
2405 _findField(key, options) {
2406 if (options.field) {
2407 return options.field;
2408 }
2409
2410 if (options.model && options.model.rawAttributes && options.model.rawAttributes[key]) {
2411 return options.model.rawAttributes[key];
2412 }
2413
2414 if (options.model && options.model.fieldRawAttributesMap && options.model.fieldRawAttributesMap[key]) {
2415 return options.model.fieldRawAttributesMap[key];
2416 }
2417 }
2418
2419 class="cm">// OR/AND/NOT grouping logic
2420 _whereGroupBind(key, value, options) {

Callers 1

whereItemQueryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected