Seraph.Schema.Relationship.Incoming (Seraph v0.2.4)

Stores data about an outgoing relationship.

Fields are:

  • start_node - The start node schema
  • end_node - The end node schema
  • field - The node schema field where relationship data will be storerd
  • cardinality - The relationship cardinality
  • schema - The relationship module

Link to this section Summary

Link to this section Types

Specs

t() :: %Seraph.Schema.Relationship.Incoming{
  cardinality: :one | :many,
  direction: :outgoing | :incoming,
  end_node: Seraph.Repo.queryable(),
  field: atom(),
  schema: Seraph.Repo.queryable(),
  start_node: Seraph.Repo.queryable(),
  type: String.t()
}