KnowledgeOS API Reference
    Preparing search index...

    Interface GraphTraversalQuery

    interface GraphTraversalQuery {
        direction(dir: "outgoing" | "incoming" | "both"): GraphTraversalQuery;
        edgeLabels(labels: string[]): GraphTraversalQuery;
        execute(): Promise<SDKResponse<TraversalResultDTO>>;
        executeRaw(): Promise<ApiResponse<TraversalResultDTO>>;
        maxDepth(depth: number): GraphTraversalQuery;
        maxResults(n: number): GraphTraversalQuery;
        nodeLabels(labels: string[]): GraphTraversalQuery;
    }

    Hierarchy (View Summary)

    Index
    • Parameters

      • dir: "outgoing" | "incoming" | "both"

      Returns GraphTraversalQuery