Option.some(node) if the node's data is an ECHO object, Option.none() otherwise.
// Match ECHO objects that are not system types
const whenUserObject = GraphNodeMatcher.whenAll(
AppNodeMatcher.whenEchoObjectMatches,
GraphNodeMatcher.whenNot(AppNodeMatcher.whenEchoTypeMatches(SystemType)),
);
whenEchoObject - Use instead when you need the object data directly.
Matches a node whose data is any ECHO object. Returns the node (not the data) to enable composition with whenAll/whenAny/whenNot.
Use this instead of whenEchoObject when you need to combine matchers. The difference is what's returned:
whenEchoObjectreturns the object data (for direct use)whenEchoObjectMatchesreturns the node (for composition)