Sha256: c93bc275896fda393a7e33fa4addde7ea65f77ffdc826447c179469bd359ac6f
Contents?: true
Size: 558 Bytes
Versions: 1
Compression:
Stored size: 558 Bytes
Contents
# frozen_string_literal: true module Grumlin module Middlewares class BuildQuery < Middleware def call(env) env[:query] = { requestId: SecureRandom.uuid, op: :bytecode, processor: env[:session_id] ? :session : :traversal, args: { gremlin: { :@type => "g:Bytecode", :@value => env[:bytecode] }, aliases: { g: :g }, session: env[:session_id] }.compact } @app.call(env) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grumlin-0.23.0 | lib/grumlin/middlewares/build_query.rb |