pub fn connections_to_js<'a, C: Context<'a>>(
    cx: &mut C,
    edges: Vec<DsnpGraphEdge>
) -> JsResult<'a, JsArray>
Expand description

Function to convert Vec<DsnpGraphEdge> to JsArray of JsObjects

Arguments

  • cx - Neon FunctionContext
  • edges - Vec<DsnpGraphEdge>

Returns

  • JsResult<JsArray> - Neon JsArray of JsObjects

Errors

  • Throws a Neon error if the edges cannot be converted