Fix formatting in documentation.
There was italic formatting in the Cypher examples where there should have been visible underscores. Signed-off-by: Gerrit Meier <meistermeier@gmail.com>
This commit is contained in:
@@ -353,8 +353,8 @@ Passing an instance of `Movie` to the repository method above, will generate the
|
||||
}
|
||||
----
|
||||
|
||||
A node is represented by a map. The map will always contain `__id__` which is the mapped id property.
|
||||
Under `__labels__` all labels, static and dynamic, will be available.
|
||||
A node is represented by a map. The map will always contain `\\__id__` which is the mapped id property.
|
||||
Under `\\__labels__` all labels, static and dynamic, will be available.
|
||||
All properties - and type of relationships - appear in those maps as they would appear in the graph when the entity would
|
||||
have been written by SDN.
|
||||
Values will have the correct Cypher type and won't need further conversion.
|
||||
|
||||
@@ -83,7 +83,7 @@ This is needed for situations when inheritance is used and you query not for the
|
||||
Talking about relationships: If you have defined relationships in your entity, they will get added to the returned map as https://neo4j.com/docs/cypher-manual/4.0/syntax/lists/#cypher-pattern-comprehension[pattern comprehensions].
|
||||
The above return part will then look like:
|
||||
|
||||
`RETURN n{.first_name, ..., Person_Has_Hobby: [(n)-[:Has]->(n_hobbies:Hobby)|n_hobbies{{neo4jInternalId}: id(n_hobbies), .name, __nodeLabels__: labels(n_hobbies)}]}`
|
||||
`RETURN n{.first_name, ..., Person_Has_Hobby: [(n)-[:Has]->(n_hobbies:Hobby)|n_hobbies{{neo4jInternalId}: id(n_hobbies), .name, {neo4jLabels}: labels(n_hobbies)}]}`
|
||||
|
||||
The map projection and pattern comprehension used by SDN ensures that only the properties and relationships you have defined are getting queried.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user