Skip to content

Commit 6a95ff5

Browse files
committed
docs
1 parent 9959310 commit 6a95ff5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

docs/src/dev/developer/for-committers.asciidoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,16 @@ such as null and spaces.
426426
include the `.id` suffix which would indicate getting the vertex identifier or the `.sid` suffix which gets a string
427427
representation of the edge identifier.
428428
429+
When using this syntax, it is important to remember that lists and sets may contain other lists or sets as elements,
430+
allowing for nested collection notation such as `l[l[d[1].i,d[2].i],l[d[3].i,d[4].i]]`. The step definitions across all
431+
language variants parse these correctly by tracking bracket depth so that commas inside inner brackets are not treated
432+
as top-level separators. However, mixed-type nesting is not supported — a list or set may not contain a map as a direct
433+
element (e.g. `l[m[{"name":"marko"}]]` will not parse correctly). This limitation exists because the type notation
434+
matchers are applied in order using substring matching, and the `m[...]` matcher fires before `l[...]` on the outer
435+
value, causing the map pattern to consume part of the surrounding bracket syntax. Same-type nesting (list-of-lists,
436+
set-of-sets) and nesting of scalar types (vertices, edges, numbers, strings) inside lists or sets works as
437+
expected.
438+
429439
In addition, parameter names should adhere to a common form as they hold some meaning to certain language variant
430440
implementations:
431441

0 commit comments

Comments
 (0)