grapher/lib/query/nodes/fieldNode.js

11 lines
260 B
JavaScript
Raw Normal View History

2016-09-14 16:04:08 +03:00
export default class FieldNode {
constructor(name, body) {
this.name = name;
this.body = _.isObject(body) ? 1 : body;
2016-11-18 18:33:21 +02:00
this.scheduledForDeletion = false;
2016-09-16 19:22:12 +03:00
}
2016-09-14 16:04:08 +03:00
applyFields(fields) {
fields[this.name] = this.body;
}
}