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

Function mapFinderOptions

src/utils.js:166–175  ·  view source on GitHub ↗
(options, Model)

Source from the content-addressed store, hash-verified

164
165/* Expand and normalize finder options */
166function mapFinderOptions(options, Model) {
167 if (options.attributes && Array.isArray(options.attributes)) {
168 options.attributes = Model._injectDependentVirtualAttributes(options.attributes);
169 options.attributes = options.attributes.filter(v => !Model._virtualAttributes.has(v));
170 }
171
172 mapOptionFieldNames(options, Model);
173
174 return options;
175}
176exports.mapFinderOptions = mapFinderOptions;
177
178/* 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