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
24 changes: 23 additions & 1 deletion modules/ROOT/pages/errors/gql-errors/42N35.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,29 @@
= 42N35

== Status description
error: syntax error or access rule violation - unsupported path selector in path pattern. The path selector `{ <<selector>> }` is not supported within quantified or parenthesized path patterns.
error: syntax error or access rule violation - unsupported path selector or explicit path mode in path pattern. The path selector or explicit path mode `{ <<selectorOrPathMode>> }` is not supported within quantified or parenthesized path patterns.

[#_example_scenario]
== Example scenario

For example, when trying to use `SHORTEST` or an explicit path mode like `ACYCLIC` within a quantified path pattern:

[source,cypher]
----
MATCH ()(SHORTEST 5 PATHS (a)-[r]->(b))*() RETURN r;
MATCH ()(ACYCLIC (a)-[r]->(b))*() RETURN r;
----

You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001] with a cause with GQLSTATUS 42N35.

== Possible solution
Move the `SHORTEST` clause or an explicit path mode outside of the quantified path pattern:

[source,cypher]
----
MATCH SHORTEST 5 PATHS ()((a)-[r]->(b))*() RETURN r;
MATCH ACYCLIC ()((a)-[r]->(b))*() RETURN r;
----

ifndef::backend-pdf[]
[discrete.glossary]
Expand Down
1 change: 1 addition & 0 deletions modules/ROOT/partials/glossary.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
[[schemaDescr]]$schemaDescr:: Schema descriptor, for example, `(:Label1 \{prop1})`.
[[schemaDescrType]]$schemaDescrType:: Freeform type of schema descriptor, for example, `label property existence constraint`.
[[selector]]$selector:: GPM path selector, for example, `ALL PATHS`, `SHORTEST 2`, etc.
[[selectorOrPathMode]]$selectorOrPathMode:: GPM path selector, for example, `ALL PATHS`, `SHORTEST 2`, etc, or GPM path mode, for example `ACYCLIC`, `TRAIL`, etc.
[[selectorType]]$selectorType:: Selector type.
//Ask Lasse about $selectorType (releated to CDC) and has nothing to do with $selector.
[[server]]$server:: Server name or ID, for example, `25a7efc7-d063-44b8-bdee-f23357f89f01`.
Expand Down
Loading