MCPcopy
hub / github.com/Automattic/mongoose / getStrictQuery

Function getStrictQuery

lib/cast.js:422–436  ·  view source on GitHub ↗
(queryOptions, schemaUserProvidedOptions, schemaOptions, context)

Source from the content-addressed store, hash-verified

420}
421
422function getStrictQuery(queryOptions, schemaUserProvidedOptions, schemaOptions, context) {
423 if ('strictQuery' in queryOptions) {
424 return queryOptions.strictQuery;
425 }
426 if ('strictQuery' in schemaUserProvidedOptions) {
427 return schemaUserProvidedOptions.strictQuery;
428 }
429 const mongooseOptions = context?.mongooseCollection?.conn?.base?.options;
430 if (mongooseOptions) {
431 if ('strictQuery' in mongooseOptions) {
432 return mongooseOptions.strictQuery;
433 }
434 }
435 return schemaOptions.strictQuery;
436}

Callers 1

cast.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…