Skip to content

Commit

Permalink
Add .id() step to the traversal builder
Browse files Browse the repository at this point in the history
  • Loading branch information
ytanay committed May 19, 2023
1 parent 0302042 commit 5180967
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gremlin-client/src/process/traversal/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -694,4 +694,9 @@ impl TraversalBuilder {
self.bytecode.add_step(String::from("emit"), vec![]);
self
}

pub fn id(mut self) -> Self {
self.bytecode.add_step(String::from("id"), vec![]);
self
}
}

0 comments on commit 5180967

Please sign in to comment.