Permalink
Browse files

Changed the name of the gremlin function to execute after talking it …

…over with Aseem. I also commented out the results mapping

in order to get the functionality tested and working. I plan to write more tests and reapply this section in the near future.
  • Loading branch information...
1 parent 50056af commit 7f2db67334e2be69e64bcd1aa9c23ac5d1b423bb Stephen Rivas JR committed Aug 30, 2012
Showing with 11 additions and 11 deletions.
  1. +11 −11 lib/GraphDatabase._coffee
View
@@ -246,7 +246,7 @@ module.exports = class GraphDatabase
# parameters as a map -- recommended for both perf and security!
# http://docs.neo4j.org/chunked/snapshot/gremlin-plugin.html
# returns...
- gremlin: (script, params, _) ->
+ execute: (script, params, _) ->
try
services = @getServices _
endpoint = services.gremlin or
@@ -275,16 +275,16 @@ module.exports = class GraphDatabase
# Success: build result maps, and transform nodes/relationships
body = response.body # JSON already parsed by request
- results = for row in body
- for value, i in row
- if value and typeof value is 'object' and value.self
- if value.type then new Relationship this, value
- else new Node this, value
- else
- value
- row
-
- return results
+ #results = for row in body
+ # for value, i in row
+ # if value and typeof value is 'object' and value.self
+ # if value.type then new Relationship this, value
+ # else new Node this, value
+ # else
+ # value
+ # row
+
+ return body
catch error
throw adjustError error

0 comments on commit 7f2db67

Please sign in to comment.