Function elementMapToEdgeValue

  • Convert the result of a Gremlin .elementMap() call to a simple JS object.

    This differs from elementMapToObject() in that it also converts IN and OUT to inV and outV so that the value can be passed to an edge postUpdate hook.

    Returns

    A JS object.

    Parameters

    • map: GremlinMap

      The elementMap value.

    Returns {
        id: string | Record<string, string>;
        inV: {
            properties: undefined;
        };
        label: string | Record<string, string>;
        outV: {
            properties: undefined;
        };
        properties: {};
    }

    • id: string | Record<string, string>
    • inV: {
          properties: undefined;
      }
      • properties: undefined
    • label: string | Record<string, string>
    • outV: {
          properties: undefined;
      }
      • properties: undefined
    • properties: {}

    Generated using TypeDoc