BrainPreview
Open in TheBrain

Naming Rules and Recommendations

<p>Node labels, relationship types and properties are case sensitive, meaning for example that the property&nbsp;<code class="literal">name</code> means something different than the property&nbsp;<code class="literal">Name</code>. It is recommended to follow the naming conventions described in the following table:</p>

<p>&nbsp;</p>

<div id="d0e428" class="table">

<table class="width-80p" style="height: 519px;" border="1" summary="Naming conventions" width="427">

<thead>

<tr>

<th>Graph entityRecommendedstyleExample</th>

<th>&nbsp;</th>

<th>&nbsp;</th>

</tr>

</thead>

<tbody>

<tr>

<td>

<p>Node label</p>

</td>

<td>

<p>Camel case, beginning with an upper-case character</p>

</td>

<td>

<p><code class="literal">:VehicleOwner</code> rather than&nbsp;<code class="literal">:vehice_owner</code></p>

</td>

</tr>

<tr>

<td>

<p>Relationship type</p>

</td>

<td>

<p>Upper case, using underscore to separate words</p>

</td>

<td>

<p><code class="literal">:OWNS_VEHICLE</code> rather than&nbsp;<code class="literal">:ownsVehicle</code></p>

</td>

</tr>

<tr>

<td>

<p>Property</p>

</td>

<td>

<p>Lower camel case, beginning with a lower-case character</p>

</td>

<td>

<p><code class="literal">firstName</code> rather than&nbsp;<code class="literal">first_name</code></p>

</td>

</tr>

</tbody>

</table>

</div>

<p>For the precise naming rules, refer to the&nbsp;<a class="olink" href="https://neo4j.com/docs/cypher-manual/3.5/syntax/naming/">Cypher manual → Naming rules and yrecommendations</a>.</p>