@dxos/app-toolkit - v0.16.0
    Preparing search index...

    Function whenEchoObjectMatches

    • 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:

      • whenEchoObject returns the object data (for direct use)
      • whenEchoObjectMatches returns the node (for composition)

      Parameters

      • node: Readonly

      Returns Option<
          Readonly<
              {
                  cacheable?: string[];
                  data: any;
                  id: string;
                  properties: Readonly<Record<string, any>>;
                  type: string;
              },
          >,
      >

      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.