Hi! I'v found that it is possible to alter database data inside
traversal query like this:

*PYTHON DICT*
...
    "prune evaluator": {
      "language": "javascript",
      "body": """
      if(position.node().getId().equals(12)){
        position.node().setProperty('some_property','some_value');
        false;
      }else{
        true;
      }
    },

As I understand I can do the same with relationships but I didn't find
how to get current Database Service instance (graphdb), can anybody
tell me is it possible and has this trick right to life ?


Also: if graphdb can bee accessed via javasctipt, is it means that I
can do transactional operations via traversal query ?

Also too: It would bу nice to pass a custom JAVA code to REST with a
custom output.
for example: prepare some output on serverside with one query instead
of quering dozens when I need to get relationships and some properties
of a Nodes.

-- 
Best Regards, Nikitin Sergey

ICQ 343833010
phone:
8(926)013-55-66

site: http://nikitinsm.ru
email: [email protected]
skype: nikitinsm
jabber: [email protected]
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to