andreachild commented on code in PR #3234:
URL: https://github.com/apache/tinkerpop/pull/3234#discussion_r2421140970


##########
docs/src/upgrade/release-3.7.x.asciidoc:
##########
@@ -30,6 +30,21 @@ complete list of all the modifications that are part of this 
release.
 
 === Upgrading for Users
 
+==== Deprecation of Scopes in aggregate() Step
+
+Scopes are now deprecated inside the `aggregate()` step, and will be removed 
in the next major upgrade.
+The preferred way to achieve lazy evaluation with `aggregate()`, is using 
`local()`.
+
+[source,text]
+----
+// 3.7.4
+gremlin> g.V().aggregate(Scope.local, "x").by("age").cap("x")
+==>[29,27,32,35]
+
+// 3.7.5 convention
+gremlin> g.V().local(aggregate("x").by("age")).cap("x")
+==>[29,27,32,35]

Review Comment:
   ```suggestion
   // 3.7.5 deprecated
   gremlin> g.V().aggregate(Scope.local, "x").by("age").cap("x")
   ==>[29,27,32,35]
   
   // 3.7.5 recommended
   gremlin> g.V().local(aggregate("x").by("age")).cap("x")
   ==>[29,27,32,35]
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to