diff --git a/preview-src/admonitions.adoc b/preview-src/admonitions.adoc index 43091211..d7aba5f9 100644 --- a/preview-src/admonitions.adoc +++ b/preview-src/admonitions.adoc @@ -274,7 +274,7 @@ docker container exec -u neo4j -it /bin/bash [TIP] ==== -This is an admonition that contains a table. +This is a TIP that contains a table. [options="header", cols="^,^,^,^"] |=== @@ -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 diff --git a/preview-src/queryresult.adoc b/preview-src/queryresult.adoc new file mode 100644 index 00000000..cf819834 --- /dev/null +++ b/preview-src/queryresult.adoc @@ -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 +|=== +==== \ No newline at end of file diff --git a/preview-src/ui-model.yml b/preview-src/ui-model.yml index 9eecd05e..ce91b001 100644 --- a/preview-src/ui-model.yml +++ b/preview-src/ui-model.yml @@ -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 diff --git a/src/css/doc.css b/src/css/doc.css index b797de40..8576d8a9 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -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;