Skip to content

Commit be1a15c

Browse files
committed
Fix formatting in documentation.
There was italic formatting in the Cypher examples where there should have been visible underscores. Signed-off-by: Gerrit Meier <[email protected]> (cherry picked from commit e023d23)
1 parent cd63e53 commit be1a15c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/antora/modules/ROOT/pages/appendix/custom-queries.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@ Passing an instance of `Movie` to the repository method above, will generate the
353353
}
354354
----
355355

356-
A node is represented by a map. The map will always contain `__id__` which is the mapped id property.
357-
Under `__labels__` all labels, static and dynamic, will be available.
356+
A node is represented by a map. The map will always contain `\\__id__` which is the mapped id property.
357+
Under `\\__labels__` all labels, static and dynamic, will be available.
358358
All properties - and type of relationships - appear in those maps as they would appear in the graph when the entity would
359359
have been written by SDN.
360360
Values will have the correct Cypher type and won't need further conversion.

src/main/antora/modules/ROOT/pages/appendix/query-creation.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ This is needed for situations when inheritance is used and you query not for the
8383
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].
8484
The above return part will then look like:
8585

86-
`RETURN n{.first_name, ..., Person_Has_Hobby: [(n)-[:Has]->(n_hobbies:Hobby)|n_hobbies{{neo4jInternalId}: id(n_hobbies), .name, __nodeLabels__: labels(n_hobbies)}]}`
86+
`RETURN n{.first_name, ..., Person_Has_Hobby: [(n)-[:Has]->(n_hobbies:Hobby)|n_hobbies{{neo4jInternalId}: id(n_hobbies), .name, {neo4jLabels}: labels(n_hobbies)}]}`
8787

8888
The map projection and pattern comprehension used by SDN ensures that only the properties and relationships you have defined are getting queried.
8989

0 commit comments

Comments
 (0)