gatsby-source-sanity
Version:
Gatsby source plugin for building websites using Sanity.io as a backend.
11 lines • 397 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var through = require("through2");
function filter(doc, enc, callback) {
if (doc && doc._id && doc._id.startsWith('_.')) {
return callback();
}
return callback(null, doc);
}
exports.removeSystemDocuments = function () { return through.obj(filter); };
//# sourceMappingURL=removeSystemDocuments.js.map