Domain-level DSL extension for AshNeo4j.
Attach to an Ash domain (directly or via a domain fragment) to write an additional label on every node in that domain.
defmodule Telco do
use Spark.Dsl.Fragment,
of: Ash.Domain,
extensions: [AshNeo4j.DataLayer.Domain]
neo4j do
label :Telco
end
end
defmodule Provider do
use Ash.Domain, fragments: [Telco]
endNodes for resources in Provider will have :Telco written as an additional
label on CREATE, giving the graph a semantically navigable axis.