Skip to content

Commit

Permalink
Add .e traversal
Browse files Browse the repository at this point in the history
  • Loading branch information
ytanay committed Mar 9, 2023
1 parent 7b6a174 commit 03ac9c8
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 @@ -52,6 +52,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
Expand Down

0 comments on commit 03ac9c8

Please sign in to comment.