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
6 changes: 6 additions & 0 deletions modules/openCypher-in-gsql/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,12 @@ See below for restrictions before version *4.1.2*.
|type() |Scalar |Returns the string representation of the relationship type.
|===


[NOTE]
====
All OpenCypher functions listed below can be used in GSQL mode, and all primitive GSQL functions can be used in OpenCypher mode.
====

=== Expressions
[cols="1,3"]
|===
Expand Down
25 changes: 25 additions & 0 deletions modules/querying/pages/func/datetime-functions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,31 @@ Converts a `DATETIME` value to epoch time.
datetime_to_epoch(to_datetime("1970-01-01 00:01:00")) -> 60
----

== timestamp()

=== Syntax

`timestamp()`

=== Description

Returns the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC.

=== Return type

`INT`

=== Parameters

None.

=== Example

[source,text]
----
timestamp() -> 1609459200000
----

== `day()`

[discrete]
Expand Down
32 changes: 32 additions & 0 deletions modules/querying/pages/func/edge-methods.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -222,3 +222,35 @@ GSQL > run query elementId_example()
]
}
----

== type()

=== Syntax

`type(e)`

=== Description

Returns the string representation of the edge type.

=== Return type

`STRING`

=== Parameters

|===
| Parameter | Description | Data type

| `e`
| The edge whose type will be returned.
| `EDGE`

|===

=== Example

[source,text]
----
type(e) -> "worksFor"
----
32 changes: 32 additions & 0 deletions modules/querying/pages/func/list-functions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,35 @@ split("aaabcaabca", "abc") -> ["aa", "a", "a"]
----
tail(["a", "b", "c"]) -> ["b", "c"]
----

== labels()

=== Syntax

`labels(vertex)`

=== Description

Returns a `LIST<STRING>` containing the string representation of the type of the given vertex.

=== Return type

`LIST<STRING>`

=== Parameters

|===
| Parameter | Description | Data type

| `vertex`
| The vertex whose type will be returned.
| `VERTEX`

|===

=== Example

[source,text]
----
labels(v) -> ["person"]
----
19 changes: 19 additions & 0 deletions modules/querying/pages/func/mathematical-functions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,25 @@ Return the common logarithm of a number (base 10).
| Number
|===

== e()

=== Syntax

`e()`

=== Description

Returns the base of the natural logarithm, e (approximately 2.718281828459045).

=== Return type

`FLOAT`

=== Parameters

None.


== Trigonometric

=== acos()
Expand Down