pub fn key_pairs_from_js<'a, C: Context<'a>>(
    cx: &mut C,
    key_pairs_js: Handle<'_, JsArray>
) -> NeonResult<Vec<GraphKeyPair>>
Expand description

Function to convert JsArray of GraphKeyPair to Vec<GraphKeyPair>

Arguments

  • cx - Neon FunctionContext
  • key_pairs_js - Neon JsArray of JsObjects

Returns

  • Vec<GraphKeyPair>

Errors

  • Throws a Neon error if the key pairs cannot be converted