     }
 
     public func makeNode(in context: Context?) throws -> Node {
-        return try self.method.makeNode(in: context)
+        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
     }
 }
 

    case undefinedRelation(String)
    case undefinedMethodType(String)
}

import Foundation

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