Search code examples
javascriptfunctionserverdocumentationorientdb

OrientDB Javascript Server Side Functions


I want to implement the whole server logic of the OrientDB with the server side Javascript functions but I can´t find a documentation of the server side JS implemantation. The best tutorial that I found is this one:

http://pizzaconnections.net/2015/04/02/orientdb-functions-by-samples-1/

But thats not enough, for example I want to know, how I can traverse to the graph with JS or if I have a vertex saved in a JS variable how to see which edges are going out from this vertex?

Can someone give me few links with good tutorials or maybe a good documentation for Javascript server side functions?


Solution

  • This is the examples that I made in according with your request:

    I have this schema:

    enter image description here

    JS function to traverse the graph:

    enter image description here

    and the output(just a piece):

    enter image description here

    JS function to see which edges are going out from a specific vertex:

    enter image description here

    and the output:

    enter image description here

    Hope it helps,

    Regards.