node
メソッド | 引数 | 戻り値 | 説明 |
---|---|---|---|
id() | int | Node ID | |
identity() | Integer | internal ID as a Neo4j Integer | |
properties() | Object | プロパティ取得 | |
get(property, or = null) | String:プロパティ名 | mixin | 指定したプロパティ名の値取得 |
valueToJson(property, value) | |||
model() | model | ノードのモデル取得 | |
labels() | Array | ノードのラベル取得 | |
setEager(key, value) | node | Set an eager value on the fly | |
delete(to_depth) | Depth to delete to (Defaults to 10) | グラフからノードを削除します | |
relateTo(node, type, properties = {}, force_create = false) | ノードにリレーションシップを設定 | ||
detachFrom(other) | 別のノードとの関係を削除します | ||
toJson() | Promise | NodeをJSONオブジェクトで取得 | |
update(properties) | properties | node | nodeのプロパティを更新 |
Relationship
メソッド | 引数 | 戻り値 | 説明 |
---|---|---|---|
id() | int | Node ID | |
identity() | Integer | internal ID as a Neo4j Integer | |
properties() | Object | プロパティ取得 | |
get(property, or = null) | String:プロパティ名 | mixin | 指定したプロパティ名の値取得 |
valueToJson(property, value) | |||
definition() | Definition | リレーションシップの定義取得 | |
type() | type | リレーションシップのタイプ取得 | |
startNode() | node | リレーションの開始node | |
endNode() | node | リレーションの終了ノード | |
otherNode() | node | サブジェクトの関係の反対側のノード取得(方向が入っている場合は終了ノード、それ以外は開始ノード) | |
toJson() | Promise | リレーションシップをJSONオブジェクトで取得 | |
update(properties) | properties | node | リレーションシップのプロパティを更新 |