Classes
Methods
# async createRelation(left_nodeid, relation_data, cb) → {Promise.<ApiResponse>}
Parameters:
| Name | Type | Description |
|---|---|---|
left_nodeid |
*
|
|
relation_data |
*
|
|
cb |
*
|
Returns the created relation
Promise.<ApiResponse>
# async deleteRelation(relation_sid, cb) → {Promise.<RestResponse>}
Parameters:
| Name | Type | Description |
|---|---|---|
relation_sid |
*
|
|
cb |
*
|
Returns the response from the delete operation
Promise.<RestResponse>
# async getRelation(left_nodeid, relation_name, cb)
Get relation by name or create it if it does not exist by using relation_data
Parameters:
| Name | Type | Description |
|---|---|---|
left_nodeid |
*
|
|
relation_name |
*
|
|
cb |
*
|
# async getRelationList(query, cb) → {Promise.<ApiResponse>}
Parameters:
| Name | Type | Description |
|---|---|---|
query |
*
|
= { 'members' : ' ... ' 'filter' : ' ... ' } |
cb |
*
|
Returns array of relations
Promise.<ApiResponse>
# async getRelationListByNode(left_nodeid, query, cb) → {Promise.<ApiResponse>}
Parameters:
| Name | Type | Description |
|---|---|---|
left_nodeid |
*
|
|
query |
*
|
|
cb |
*
|
{ status : data : array of relations
Promise.<ApiResponse>