UNPKG

gatsby-source-sanity

Version:

Gatsby source plugin for building websites using Sanity.io as a backend.

11 lines 397 B
"use strict"; 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