#[no_mangle]
pub unsafe extern "C" fn Java_io_projectliberty_graphsdk_Native_getConnectionsForUserGraph<'local>(
    env: JNIEnv<'local>,
    _class: JClass<'local>,
    handle: jlong,
    dsnp_user_id: jlong,
    schema_id: jint,
    include_pending: jboolean
) -> JByteArray<'local>
Expand description

Get connections for a user graph.

Arguments

  • handle - the handle to the graph state
  • dsnp_user_id - the user id to get connections for
  • schema_id - the schema id to get connections for
  • include_pending - whether to include pending connections

Returns

  • jbyteArray - the serialized connections

Errors

  • SdkJniError - if getting connections fails