Function dsnp_graph_sdk_node::api::get_connections_for_user_graph
source · pub fn get_connections_for_user_graph(
cx: FunctionContext<'_>
) -> JsResult<'_, JsArray>
Expand description
Function to get connections for user from the graph state (getConnectionsForUserGraph)
Arguments
cx
- Neon FunctionContextgraph_state_id
- Unique identifier for the graph statedsnp_user_id
- DSNP user id
Returns
JsResult<JsArray>
- Neon JsArray containing the connections which is list of DSNPGraphEdge
Errors
- Throws a Neon error