UNPKG

gatsby-source-sanity

Version:

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

11 lines 381 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const through = require("through2"); function filter(doc, enc, callback) { if (doc && doc._id && doc._id.startsWith('_.')) { return callback(); } return callback(null, doc); } exports.removeSystemDocuments = () => through.obj(filter); //# sourceMappingURL=removeSystemDocuments.js.map