0
0

More than 3 years have passed since last update.

node.jsでneo4jのOGMを使う③メソッド一覧

Posted at

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 リレーションシップのプロパティを更新
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0