Skip to content

Commit

Permalink
Add .e traversal step (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
ytanay committed Mar 9, 2023
1 parent 7b6a174 commit b08ea08
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gremlin-client/src/process/traversal/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@ impl TraversalBuilder {
self
}

pub fn e<T>(mut self, ids: T) -> TraversalBuilder
where
T: Into<GIDs>,
{
self.bytecode.add_step(
String::from("E"),
ids.into().0.iter().map(|id| id.to_gvalue()).collect(),
);
self
}

pub fn has_label<L>(mut self, labels: L) -> Self
where
L: Into<Labels>,
Expand Down

0 comments on commit b08ea08

Please sign in to comment.