lib/neography/rest/gremlin.rb
module Neography
class Rest
module Gremlin
include Neography::Rest::Helpers
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
end
end
end