     case undefinedRelation(String)
     case undefinedMethodType(String)
 }
+

import Foundation
import Node

/// Conforms Filter to NodeRepresentable and adds a Node Initializer
extension Filter: NodeConvertible {

    }

    public func makeNode(in context: Context?) throws -> Node {
        var node = Node([:])
        let entityName = String(reflecting: entity).components(separatedBy: ".Type")[0]
        try node.set("entity", entityName)
        try node.set("method", try self.method.makeNode(in: context))
        return node
    }
}

