Static Member Summary
Static Public Members | ||
public static get |
|
|
public static get |
|
|
public static get |
|
|
public static get |
|
|
public static set |
|
|
public static get |
Model: * The related Node class or a function that returns a Node class |
|
public static get |
|
|
public static get |
direction: * The direction of the relationship, can be Relationship.IN or Relationship.OUT |
|
public static set |
|
|
public static get |
model: * Alias for Model |
|
public static set |
|
|
public static set |
|
|
public static get |
singular: * If true a relationship will always have only a single related Node |
|
public static set |
|
|
public static get |
type: * The type of the relationship, will be used as the name of the relationship created in the graph |
Constructor Summary
Public Constructor | ||
public |
constructor(relation: object | neo4j.types.Relationship, graph: Graph) Creates an instance of Relationship |
Member Summary
Public Members | ||
public get |
$direction: * |
|
public get |
Whether or not the Node has changed properties. |
|
public |
$entity: * |
|
public |
$graph: * |
|
public get |
The neo4j entity ID. |
|
public get |
Whether or not the node is already stored in the graph database. |
|
public get |
$type: * |
|
public get |
end: * |
|
public set |
|
|
public get |
start: * |
|
public set |
|
Method Summary
Public Methods | ||
public |
async save(tx: any) Save the relationship |
|
public |
setProperty(key: string, value: any) Set property value |
Static Public Members
public static set Model source
public static get direction: * source
The direction of the relationship, can be Relationship.IN or Relationship.OUT
public static set direction source
public static set model source
public static set singular source
public static get singular: * source
If true a relationship will always have only a single related Node
public static set type source
public static get type: * source
The type of the relationship, will be used as the name of the relationship created in the graph
Public Constructors
Public Members
public get $direction: * source
public $entity: * source
public $graph: * source
public get $id: number source
The neo4j entity ID. Note that this could change over time, use id instead.