pub fn schema_config_to_js<'a, C: Context<'a>>(
    cx: &mut C,
    schema_config: &SchemaConfig
) -> JsResult<'a, JsObject>
Expand description

Convert rust SchemaConfig to JSObject

Arguments

  • cx - Neon FunctionContext
  • schema_config - SchemaConfig object

Returns

  • JsResult<JsObject> - Neon JsObject containing the schema config

Errors

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