Current section
Files
Jump to
Current section
Files
documentation/dsls/DSL-AshNeo4j.DataLayer.Domain.md
<!--
This file was generated by Spark. Do not edit it by hand.
-->
# AshNeo4j.DataLayer.Domain
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]
end
Nodes for resources in `Provider` will have `:Telco` written as an additional
label on CREATE, giving the graph a semantically navigable axis.
## neo4j
### Options
| Name | Type | Default | Docs |
|------|------|---------|------|
| [`label`](#neo4j-label){: #neo4j-label } | `atom` | | Label written on CREATE for all nodes whose resource belongs to this domain. |
<style type="text/css">.spark-required::after { content: "*"; color: red !important; }</style>