Monarch Database API - v1.0.0
    Preparing search index...

    Interface GraphOperations

    interface GraphOperations {
        gcreateEdge(
            graphKey: string,
            from: string,
            to: string,
            type?: string,
            properties?: Record<string, any>,
        ): Promise<string>;
        gcreateNode(
            graphKey: string,
            label?: string,
            properties?: Record<string, any>,
        ): Promise<string>;
        gdeleteEdge(graphKey: string, edgeId: string): Promise<boolean>;
        gdeleteNode(graphKey: string, nodeId: string): Promise<boolean>;
        gfindByLabel(graphKey: string, label: string): Promise<any[]>;
        gfindByProperty(
            graphKey: string,
            field: string,
            value: any,
        ): Promise<any[]>;
        ggetEdge(graphKey: string, edgeId: string): Promise<any>;
        ggetNeighbors(
            graphKey: string,
            nodeId: string,
            direction?: "outgoing" | "incoming" | "both",
        ): Promise<any[]>;
        ggetNode(graphKey: string, nodeId: string): Promise<any>;
        ggetStats(graphKey: string): Promise<any>;
        gtraverse(
            graphKey: string,
            startNodeId: string,
            options?: any,
        ): Promise<any>;
        gupdateEdge(
            graphKey: string,
            edgeId: string,
            properties: Record<string, any>,
        ): Promise<boolean>;
        gupdateNode(
            graphKey: string,
            nodeId: string,
            properties: Record<string, any>,
        ): Promise<boolean>;
    }

    Implemented by

    Index

    Methods

    • Parameters

      • graphKey: string
      • from: string
      • to: string
      • Optionaltype: string
      • Optionalproperties: Record<string, any>

      Returns Promise<string>

    • Parameters

      • graphKey: string
      • Optionallabel: string
      • Optionalproperties: Record<string, any>

      Returns Promise<string>

    • Parameters

      • graphKey: string
      • edgeId: string

      Returns Promise<boolean>

    • Parameters

      • graphKey: string
      • nodeId: string

      Returns Promise<boolean>

    • Parameters

      • graphKey: string
      • label: string

      Returns Promise<any[]>

    • Parameters

      • graphKey: string
      • field: string
      • value: any

      Returns Promise<any[]>

    • Parameters

      • graphKey: string
      • edgeId: string

      Returns Promise<any>

    • Parameters

      • graphKey: string
      • nodeId: string
      • Optionaldirection: "outgoing" | "incoming" | "both"

      Returns Promise<any[]>

    • Parameters

      • graphKey: string
      • nodeId: string

      Returns Promise<any>

    • Parameters

      • graphKey: string

      Returns Promise<any>

    • Parameters

      • graphKey: string
      • startNodeId: string
      • Optionaloptions: any

      Returns Promise<any>

    • Parameters

      • graphKey: string
      • edgeId: string
      • properties: Record<string, any>

      Returns Promise<boolean>

    • Parameters

      • graphKey: string
      • nodeId: string
      • properties: Record<string, any>

      Returns Promise<boolean>