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

Method _findField

src/dialects/abstract/query-generator.js:2582–2594  ·  view source on GitHub ↗
(key, options)

Source from the content-addressed store, hash-verified

2580 }
2581
2582 _findField(key, options) {
2583 if (options.field) {
2584 return options.field;
2585 }
2586
2587 if (options.model && options.model.rawAttributes && options.model.rawAttributes[key]) {
2588 return options.model.rawAttributes[key];
2589 }
2590
2591 if (options.model && options.model.fieldRawAttributesMap && options.model.fieldRawAttributesMap[key]) {
2592 return options.model.fieldRawAttributesMap[key];
2593 }
2594 }
2595
2596 // OR/AND/NOT grouping logic
2597 _whereGroupBind(key, value, options) {

Callers 1

whereItemQueryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected