MCPcopy Index your code
hub / github.com/apache/pouchdb / ddocValidator

Function ddocValidator

lib/index.es.js:9249–9255  ·  view source on GitHub ↗
(ddoc, viewName)

Source from the content-addressed store, hash-verified

9247}
9248
9249function ddocValidator(ddoc, viewName) {
9250 var fun = ddoc.views && ddoc.views[viewName];
9251 if (typeof fun.map !== 'string') {
9252 throw new NotFoundError$1('ddoc ' + ddoc._id + ' has no string view named ' +
9253 viewName + ', instead found object of type: ' + typeof fun.map);
9254 }
9255}
9256
9257var localDocName = 'mrviews';
9258var abstract = createAbstractMapReduce(localDocName, mapper, reducer, ddocValidator);

Callers 1

queryPromisedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…