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

Function ddocValidator

lib/index-browser.js:9216–9222  ·  view source on GitHub ↗
(ddoc, viewName)

Source from the content-addressed store, hash-verified

9214}
9215
9216function ddocValidator(ddoc, viewName) {
9217 var fun = ddoc.views && ddoc.views[viewName];
9218 if (typeof fun.map !== 'string') {
9219 throw new NotFoundError('ddoc ' + ddoc._id + ' has no string view named ' +
9220 viewName + ', instead found object of type: ' + typeof fun.map);
9221 }
9222}
9223
9224var localDocName = 'mrviews';
9225var 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…