AshNeo4j.DataLayer
View SourceAsh DataLayer for Neo4j
neo4j
Examples
neo4j do
label :Comment
store [:title]
translate id: :uuid
relate [{:post, :BELONGS_TO, :outgoing}]
end
Options
Name | Type | Default | Docs |
---|---|---|---|
label | atom | The node label | |
store | list(atom) | The attributes to be stored as node properties, without translation | |
translate | keyword | Optional attribute to node property translations | |
relate | list({atom, atom, atom}) | Optional list of node relationships, as tuples of {relationship_name, edge_label, edge_direction} |