From 487cb3fdad3a6283d2616773ad5f7f161fb8236d Mon Sep 17 00:00:00 2001 From: Gerrit Meier Date: Thu, 6 Feb 2025 08:47:29 +0100 Subject: [PATCH] Fix formatting in documentation. There was italic formatting in the Cypher examples where there should have been visible underscores. Signed-off-by: Gerrit Meier (cherry picked from commit e023d23ae9551866a4d8d350e6f2d600e4758637) --- .../antora/modules/ROOT/pages/appendix/custom-queries.adoc | 4 ++-- .../antora/modules/ROOT/pages/appendix/query-creation.adoc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/antora/modules/ROOT/pages/appendix/custom-queries.adoc b/src/main/antora/modules/ROOT/pages/appendix/custom-queries.adoc index d4132a40e..c622f50b3 100644 --- a/src/main/antora/modules/ROOT/pages/appendix/custom-queries.adoc +++ b/src/main/antora/modules/ROOT/pages/appendix/custom-queries.adoc @@ -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. diff --git a/src/main/antora/modules/ROOT/pages/appendix/query-creation.adoc b/src/main/antora/modules/ROOT/pages/appendix/query-creation.adoc index b39636f60..d548b3090 100644 --- a/src/main/antora/modules/ROOT/pages/appendix/query-creation.adoc +++ b/src/main/antora/modules/ROOT/pages/appendix/query-creation.adoc @@ -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.