Skip to content

Commit

Permalink
property_many step on TraversalBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeepee committed Sep 25, 2020
1 parent d02b77e commit d8d4f95
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions gremlin-client/src/process/traversal/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,20 @@ impl TraversalBuilder {
self
}

pub fn property_many<A>(mut self, values: Vec<(String, A)>) -> Self
where
A: Into<GValue>,
{
for property in values {
self.bytecode.add_step(
String::from("property"),
vec![property.0.into(), property.1.into()],
)
}

self
}

pub fn property_with_cardinality<A>(
mut self,
cardinality: Cardinality,
Expand Down

0 comments on commit d8d4f95

Please sign in to comment.