MCPcopy
hub / github.com/apache/pouchdb / tryFilter

Function tryFilter

lib/index.js:559–566  ·  view source on GitHub ↗
(filter, doc, req)

Source from the content-addressed store, hash-verified

557}
558
559function tryFilter(filter, doc, req) {
560 try {
561 return !filter(doc, req);
562 } catch (err) {
563 var msg = 'Filter function threw: ' + err.toString();
564 return createError(BAD_REQUEST, msg);
565 }
566}
567
568function filterChange(opts) {
569 var req = {};

Callers 1

filterChangeFunction · 0.70

Calls 3

filterFunction · 0.70
createErrorFunction · 0.70
toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…