mirror of
https://github.com/vale981/grapher
synced 2025-03-10 12:56:41 -04:00
20 lines
No EOL
492 B
JavaScript
20 lines
No EOL
492 B
JavaScript
import dot from 'dot-object';
|
|
|
|
export default class ReducerNode {
|
|
constructor(name, body, reducer) {
|
|
this.collectionNode = collectionNode;
|
|
this.name = name;
|
|
this.body = body;
|
|
this.reducer = reducer;
|
|
}
|
|
|
|
init(collectionNode) {
|
|
// store fields that are needed, but not specified are fields
|
|
// so when we prepare data for delivery it we can clean-it-up
|
|
|
|
}
|
|
|
|
applyFields(fields) {
|
|
// fields[this.name] = this.body;
|
|
}
|
|
} |