Skip to content

Commit 36bd9d1

Browse files
Merge pull request #208 from MacondoExpress/add-queryDirection-changes
Added migration guide about the the queryDirection changes
2 parents c57f02e + 6cb27e4 commit 36bd9d1

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

modules/ROOT/pages/migration/index.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,3 +525,14 @@ The `directed` argument was used to change the query direction of the relationsh
525525

526526
The `directed` argument in `@relationship` fields is deprecated and will be removed in the future.
527527
Configure the query direction via the `queryDirection` and `direction` arguments of the `@relationship` directive instead.
528+
529+
=== Deprecated `@relationship.queryDirection` `_DEFAULT` and `_ONLY` options
530+
531+
Following the deprecation of the `directed` argument, the values accepted by the `@relationship.queryDirection` have changed:
532+
533+
- `DEFAULT_DIRECTED` is deprecated.
534+
- `DEFAULT_UNDIRECTED` is deprecated.
535+
- `DIRECTED_ONLY` is renamed to `DIRECTED`.
536+
- `UNDIRECTED_ONLY` is renamed to `UNDIRECTED`.
537+
538+
A warning is raised if you use a deprecated value.

modules/ROOT/pages/types/relationships.adoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,8 @@ type Person @node {
140140

141141
`queryDirection` can have the following values:
142142

143-
* `DEFAULT_DIRECTED` (default): all queries are **directed** by default, but users may perform undirected queries.
144-
* `DEFAULT_UNDIRECTED`: all queries are **undirected** by default, but users may perform directed queries.
145-
* `DIRECTED_ONLY`: only directed queries can be performed on this relationship.
146-
* `UNDIRECTED_ONLY`: only undirected queries can be performed on this relationship.
143+
* `DIRECTED`: only directed queries can be performed on this relationship.
144+
* `UNDIRECTED`: only undirected queries can be performed on this relationship.
147145

148146
== Inserting data
149147

0 commit comments

Comments
 (0)