connection

辺ラベルの作成に伴う2つの頂点間の隣接の作成方法

構文

connection('outV', 'inV')

説明

2つの頂点間の隣接は、外向き頂点および内向き頂点の辺ラベルと頂点ラベルを使用して作成します。この手順は、edgeLabel()とともに使用します。

外向き頂点ラベルにはingredientを、内向き頂点ラベルにはFridgeItemを指定した辺ラベルisAを作成します。
 schema.edgeLabel('isA').connection('ingredient', 'FridgeItem).create()
edgeLabel knowsを指定したvertexLabel authorauthor間の隣接。
schema.edgeLabel('knows').connection('author', 'author').add()