module Neography::Rest::Gremlin

Public Instance Methods

execute_script(script, parameters = {}) click to toggle source
# File lib/neography/rest/gremlin.rb, line 6
def execute_script(script, parameters = {})
  options = {
    :body => {
      :script => script,
      :params => parameters,
    }.to_json,
    :headers => json_content_type
  }
  result = @connection.post(@connection.gremlin_path, options)
  result == "null" ? nil : result
end