AshNeo4j.DataLayer

View Source

Ash DataLayer for Neo4j

neo4j

Examples

neo4j do
  label :Comment
  store [:title]
  translate id: :uuid
  relate [{:post, :BELONGS_TO, :outgoing}]
end

Options

NameTypeDefaultDocs
labelatomThe node label
storelist(atom)The attributes to be stored as node properties, without translation
translatekeywordOptional attribute to node property translations
relatelist({atom, atom, atom})Optional list of node relationships, as tuples of {relationship_name, edge_label, edge_direction}