Class GraphConnector

Hierarchy

  • GraphConnector

Constructors

Methods

  • Deprecated

    use standalone debugQuerySteps from utils instead.

    Parameters

    • stepInstructions: any
    • Optional depth: number
    • Optional pretty: boolean

    Returns string

  • Find vertex by edge label and destination type.

    Returns

    Type Parameters

    Parameters

    • context: KosmosUserContext<object>
    • label: string
    • sourceId: string
    • direction: "in" | "out"
    • edgeProperties: object
    • destinationType: string
    • vertexProperties: object

    Returns Promise<IteratorResult<T, any>>

  • This function is used to find and edge based on the edges label and the source id of an entity.

    Type Parameters

    Parameters

    • context: KosmosUserContext<object>

      The user context

    • access: AccessControl

      Instance of the AccessControl object

    • label: string

      The name of the label of the edge

    • entity_uuid: string

      The uuid of the vertex/entity

    • out: boolean

      Whether to check the outgoing edge

    • properties: object

      The properties to filter by

    • Optional mapElements: boolean

    Returns Promise<IteratorResult<T, any>>

  • Find vertex by edge label and destination type.

    Returns

    Type Parameters

    Parameters

    • context: KosmosUserContext<object>
    • label: string
    • sourceId: string
    • direction: "in" | "out"
    • edgeProperties: object
    • destinationType: string
    • vertexProperties: object

    Returns Promise<IteratorResult<T, any>>

  • Type Parameters

    • T extends object

    Parameters

    • context: KosmosUserContext<T>
    • type: undefined | string
    • vertexId: string | string[]
    • Optional checkAction: string | false

    Returns Promise<boolean | void | IteratorResult<any, any> | Traverser[]>

Generated using TypeDoc