lib/grumlin/client.rb in grumlin-0.15.6 vs lib/grumlin/client.rb in grumlin-0.16.0

- old
+ new

@@ -95,11 +95,11 @@ # TODO: support yielding def write(bytecode) raise NotConnectedError unless connected? - request = to_query(bytecode.to_bytecode) + request = to_query(bytecode) channel = @request_dispatcher.add_request(request) @transport.write(request) begin channel.dequeue.flat_map { |item| Typing.cast(item) } @@ -128,10 +128,10 @@ { requestId: SecureRandom.uuid, op: "bytecode", processor: "traversal", args: { - gremlin: bytecode, + gremlin: { :@type => "g:Bytecode", :@value => bytecode.serialize }, aliases: { g: :g } } } end end