Page MenuHomeSealhub

query_not.js
No OneTemporary

query_not.js

const Query = require("./query.js");
const QueryStep = require("./query-step.js");
module.exports = class extends Query {
constructor(query) {
super();
this.addQuery(query);
}
addQuery(query) {
const steps = query.dump();
this.steps.push(...steps);
}
dump() {
return this.steps.map(step => step.negate());
}
toPipeline() {
return this.steps.reduce(
(acc, step) => step.negate().pushStage(acc),
[]
);
}
};

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 22:20 (18 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
556981
Default Alt Text
query_not.js (434 B)

Event Timeline