MCPcopy
hub / github.com/sequelize/sequelize / mapFinderOptions

Function mapFinderOptions

lib/utils.js:153–162  ·  view source on GitHub ↗
(options, Model)

Source from the content-addressed store, hash-verified

151
152/* Expand and normalize finder options */
153function mapFinderOptions(options, Model) {
154 if (options.attributes && Array.isArray(options.attributes)) {
155 options.attributes = Model._injectDependentVirtualAttributes(options.attributes);
156 options.attributes = options.attributes.filter(v => !Model._virtualAttributes.has(v));
157 }
158
159 mapOptionFieldNames(options, Model);
160
161 return options;
162}
163exports.mapFinderOptions = mapFinderOptions;
164
165/* Used to map field names in attributes and where conditions */

Callers

nothing calls this directly

Calls 3

mapOptionFieldNamesFunction · 0.85
hasMethod · 0.45

Tested by

no test coverage detected