Cole-Greer commented on code in PR #3437:
URL: https://github.com/apache/tinkerpop/pull/3437#discussion_r3406206645


##########
gremlin-go/driver/graphTraversalSource.go:
##########
@@ -229,6 +229,23 @@ func (gts *GraphTraversalSource) MergeV(args 
...interface{}) *GraphTraversal {
        return traversal
 }
 
+// Match starts the traversal with a declarative pattern match query. The 
query language
+// defaults to "gql" and can be overridden with .With("queryLanguage", value).
+func (gts *GraphTraversalSource) Match(matchQuery string) *GraphTraversal {
+       traversal := gts.GetGraphTraversal()
+       traversal.GremlinLang.AddStep("match", matchQuery)
+       return traversal
+}
+
+// MatchWithParams starts the traversal with a declarative pattern match query 
with bound
+// parameters. The query language defaults to "gql" and can be overridden with
+// .With("queryLanguage", value).
+func (gts *GraphTraversalSource) MatchWithParams(matchQuery string, params 
map[string]interface{}) *GraphTraversal {

Review Comment:
   GraphTraversalSource should also use the permissive `Match(args 
...interface{}) *` signature to remain aligned with GraphTraversal.



-- 
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