pub fn schema_map_from_js(
    cx: &mut FunctionContext<'_>,
    schema_map_from_js: Handle<'_, JsObject>
) -> NeonResult<HashMap<SchemaId, SchemaConfig>>
Expand description

Convert schema map from JSObject to HashMap

Arguments

  • cx - Neon FunctionContext
  • schema_map_from_js - Neon JsObject containing the schema map

Returns

  • HashMap<String, SchemaConfig> - HashMap of schema configs

Errors

  • Throws a Neon error if the schema map cannot be converted