lib/grumlin/typing.rb in grumlin-1.0.0.rc3 vs lib/grumlin/typing.rb in grumlin-1.0.0.rc4
- old
+ new
@@ -11,10 +11,10 @@
"g:Traverser" => ->(value) { cast_entity(Grumlin::Traverser, value) },
"g:Property" => ->(value) { cast_entity(Grumlin::Property, value) },
"g:Int64" => ->(value) { cast_int(value) },
"g:Int32" => ->(value) { cast_int(value) },
"g:Double" => ->(value) { cast_double(value) },
- "g:Direction" => ->(value) { value },
+ "g:Direction" => ->(value) { value.to_sym },
"g:VertexProperty" => ->(value) { cast_entity(Grumlin::VertexProperty, value) },
"g:TraversalMetrics" => ->(value) { cast_map(value[:@value]) },
"g:Metrics" => ->(value) { cast_map(value[:@value]) },
"g:T" => ->(value) { Grumlin::Expressions::T.public_send(value) }
}.freeze