connection
Synopsis
connection('outV', 'inV')
Description
An adjacency between two vertices is created using an edge label and the vertex labels of the outgoing and incoming vertices.
This step is used in conjunction with edgeLabel().
Examples
Create an edge label isA specifying that the outgoing vertex label is ingredient and the incoming vertex label is FridgeItem.
schema.edgeLabel('isA').connection('ingredient', 'FridgeItem).create()
An adjacency between the vertexLabel author and author specifying the edgeLabel knows.
schema.edgeLabel('knows').connection('author', 'author').add()