This is an automated email from the ASF dual-hosted git repository. spmallette pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
commit d7a7a2bcb30be74f2a9b36a1f312dd0ddcbb42bf Author: Stephen Mallette <[email protected]> AuthorDate: Wed Jul 15 12:33:06 2026 -0400 Switched to static examples for failing multi-label CTR --- docs/src/reference/the-traversal.asciidoc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/src/reference/the-traversal.asciidoc b/docs/src/reference/the-traversal.asciidoc index 669ef4ccaa..104db83ca6 100644 --- a/docs/src/reference/the-traversal.asciidoc +++ b/docs/src/reference/the-traversal.asciidoc @@ -686,12 +686,13 @@ By contrast, calling `addLabel()` against a vertex whose graph is configured wit fixes a single, immutable label for every vertex, results in an exception since there is no set of labels to mutate: -[gremlin-groovy] +[source,groovy] ---- conf = new BaseConfiguration() conf.setProperty("gremlin.tinkergraph.vertexLabelCardinality", "ONE") graph = TinkerGraph.open(conf) g = traversal().with(graph) +// results in: Label mutation is not supported with cardinality ONE. Labels are immutable once assigned. g.addV('person').property('name','marko').addLabel('employee') ---- @@ -1987,10 +1988,12 @@ gml.V().has('name','tux').valueMap(true) <4> When a source is configured with `with("multilabel")`, the `with("singlelabel")` option can be used per-traversal to force single-string label output: -[gremlin-groovy] +[source, groovy] ---- gml = g.with("multilabel") gml.V().has('name','marko').elementMap() +// results in: with("multilabel") and with("singlelabel") are mutually exclusive +// and cannot both be configured on the same traversal source. gml.with("singlelabel").V().has('name','marko').elementMap() ----
