Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 66 additions & 1 deletion preview-src/admonitions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ docker container exec -u neo4j -it <containerName> /bin/bash

[TIP]
====
This is an admonition that contains a table.
This is a TIP that contains a table.

[options="header", cols="^,^,^,^"]
|===
Expand All @@ -289,6 +289,71 @@ This is an admonition that contains a table.

====

[NOTE]
====
This is a NOTE that contains a table.

[options="header", cols="^,^,^,^"]
|===
| Type | Date support | Time support | Time zone support
| `DATE` | {check-mark} | |
| `LOCAL TIME` | | {check-mark} |
| `ZONED TIME` | | {check-mark} | {check-mark}
| `LOCAL DATETIME` | {check-mark} | {check-mark} |
| `ZONED DATETIME` | {check-mark} | {check-mark} | {check-mark}
| `DURATION` | `-` | `-` | `-`
|===

====


[NOTE]
====
This is a NOTE that contains a table.
THe table contains different content formats.

[options="header", cols="^m,^,^,^a"]
|===
| Type | Date support | Time support | Time zone support
| `DATE` | {check-mark} | |
| `LOCAL TIME` | | {check-mark} |
| `ZONED TIME` | | {check-mark} | {check-mark}
| `LOCAL DATETIME` | {check-mark} | {check-mark} | `inline code text`
| `ZONED DATETIME` | {check-mark} | {check-mark} | _italic text_
| `DURATION` | `-` | `-` | **bold text**
|===

====

Finally, the example from a current PR

[NOTE]
====
`MERGE` cannot be used for nodes with property values that are `null`.
For example, the following query will throw an error:

.Query
[source, cypher, role=test-fail]
----
MERGE (martin:Person {name: 'Martin Sheen', age: null})
RETURN martin
----

.GQL error chain
[source, error]
----
22N31: error: data exception - invalid properties in merge pattern. 'MERGE' cannot be used with graph element property values that are null or NaN.
22G03: error: data exception - invalid value type
----
[role="queryresult",options="header",cols="1"]
|===
| GQL-status error chain
| link:https://neo4j.com/docs/status-codes/current/errors/gql-errors/22N31/[22N31]: error: data exception - invalid properties in merge pattern. 'MERGE' cannot be used with graph element property values that are null or NaN.

_caused by_: link:https://neo4j.com/docs/status-codes/current/errors/gql-errors/22G03/[22G03]: error: data exception - invalid value type
|===
====

== Admonition with a title

.note with title
Expand Down
136 changes: 136 additions & 0 deletions preview-src/queryresult.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
= Queryresult


== Queryresult code block in a paragraph

`MERGE` cannot be used for nodes with property values that are `null`.
For example, the following query will throw an error:

.Query
[source, cypher, role=test-fail]
----
MERGE (martin:Person {name: 'Martin Sheen', age: null})
RETURN martin
----

.GQL error chain
[source, error]
----
22N31: error: data exception - invalid properties in merge pattern. 'MERGE' cannot be used with graph element property values that are null or NaN.
22G03: error: data exception - invalid value type
----

== Queryresult table in a paragraph

`MERGE` cannot be used for nodes with property values that are `null`.
For example, the following query will throw an error:

.Query
[source, cypher, role=test-fail]
----
MERGE (martin:Person {name: 'Martin Sheen', age: null})
RETURN martin
----

[role="queryresult",options="header"]
|===
| GQL-status error chain
| link:https://neo4j.com/docs/status-codes/current/errors/gql-errors/22N31/[22N31]: error: data exception - invalid properties in merge pattern. 'MERGE' cannot be used with graph element property values that are null or NaN.

_caused by_: link:https://neo4j.com/docs/status-codes/current/errors/gql-errors/22G03/[22G03]: error: data exception - invalid value type
|===


== Queryresult code block in an admonition

[NOTE]
====
`MERGE` cannot be used for nodes with property values that are `null`.
For example, the following query will throw an error:

.Query
[source, cypher, role=test-fail]
----
MERGE (martin:Person {name: 'Martin Sheen', age: null})
RETURN martin
----

.GQL error chain
[source, error]
----
22N31: error: data exception - invalid properties in merge pattern. 'MERGE' cannot be used with graph element property values that are null or NaN.
22G03: error: data exception - invalid value type
----

====

== Queryresult table in a note admonition

[NOTE]
====
`MERGE` cannot be used for nodes with property values that are `null`.
For example, the following query will throw an error:

.Query
[source, cypher, role=test-fail]
----
MERGE (martin:Person {name: 'Martin Sheen', age: null})
RETURN martin
----

[role="queryresult",options="header"]
|===
| GQL-status error chain
| link:https://neo4j.com/docs/status-codes/current/errors/gql-errors/22N31/[22N31]: error: data exception - invalid properties in merge pattern. 'MERGE' cannot be used with graph element property values that are null or NaN.

_caused by_: link:https://neo4j.com/docs/status-codes/current/errors/gql-errors/22G03/[22G03]: error: data exception - invalid value type
|===
====


== Queryresult table in a warning admonition

[WARNING]
====
`MERGE` cannot be used for nodes with property values that are `null`.
For example, the following query will throw an error:

.Query
[source, cypher, role=test-fail]
----
MERGE (martin:Person {name: 'Martin Sheen', age: null})
RETURN martin
----

[role="queryresult",options="header"]
|===
| GQL-status error chain
| link:https://neo4j.com/docs/status-codes/current/errors/gql-errors/22N31/[22N31]: error: data exception - invalid properties in merge pattern. 'MERGE' cannot be used with graph element property values that are null or NaN.

_caused by_: link:https://neo4j.com/docs/status-codes/current/errors/gql-errors/22G03/[22G03]: error: data exception - invalid value type
|===
====


== Queryresult table in an important admonition

[IMPORTANT]
====
`MERGE` cannot be used for nodes with property values that are `null`.
For example, the following query will throw an error:

.Query
[source, cypher, role=test-fail]
----
MERGE (martin:Person {name: 'Martin Sheen', age: null})
RETURN martin
----

[role="queryresult",options="header"]
|===
| GQL-status error chain
| link:https://neo4j.com/docs/status-codes/current/errors/gql-errors/22N31/[22N31]: error: data exception - invalid properties in merge pattern. 'MERGE' cannot be used with graph element property values that are null or NaN.

_caused by_: link:https://neo4j.com/docs/status-codes/current/errors/gql-errors/22G03/[22G03]: error: data exception - invalid value type
|===
====
3 changes: 3 additions & 0 deletions preview-src/ui-model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ page:
- content: Admonitions
url: admonitions.html
urlType: internal
- content: Queryresult
url: queryresult.html
urlType: internal
- content: Page Banners
items:
- content: note
Expand Down
25 changes: 25 additions & 0 deletions src/css/doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1252,6 +1252,31 @@ body {
background: var(--table-stripe-background);
}

/* queryresult tables */

.doc .tableblock.queryresult {
border-top-left-radius: 0.5rem;
border-top-right-radius: 0.5rem;
}

.doc .tableblock.queryresult thead {
background: var(--code-header-background);
color: var(--code-header-font-color);
border-bottom: none;
}

.doc table.queryresult > thead th {
border-bottom: none;
}

.doc .tableblock.queryresult tbody {
background: var(--code-background);
}

.doc .tableblock.frame-all.queryresult > tbody > tr:last-child > td {
border-bottom: none;
}

.doc .emphasis,
.doc .lead {
font-weight: 400;
Expand Down