Function dsnp_graph_sdk_node::api::get_schema_id_from_config
source · pub fn get_schema_id_from_config(
cx: FunctionContext<'_>
) -> JsResult<'_, JsNumber>
Expand description
Function to get SchemaId for given ConnectionType and PrivacyType
Arguments
cx
- Neon FunctionContextconnection_type
- ConnectionType stringprivacy_type
- PrivacyType string
Returns
JsResult<JsNumber>
- Neon JsNumber containing the SchemaId
Errors
- Throws a Neon error if the SchemaId cannot be found