Quantcast
Channel: Node.jsタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 9054

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

$
0
0

node

メソッド引数戻り値説明
id()intNode ID
identity()Integerinternal ID as a Neo4j Integer
properties()Objectプロパティ取得
get(property, or = null)String:プロパティ名mixin指定したプロパティ名の値取得
valueToJson(property, value)
model()modelノードのモデル取得
labels()Arrayノードのラベル取得
setEager(key, value)nodeSet 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()PromiseNodeをJSONオブジェクトで取得
update(properties)propertiesnodenodeのプロパティを更新

Relationship

メソッド引数戻り値説明
id()intNode ID
identity()Integerinternal 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)propertiesnodeリレーションシップのプロパティを更新

Viewing all articles
Browse latest Browse all 9054

Latest Images

Trending Articles