Zak Holt
Zak Holt

Reputation: 347

NodeJS Gremlin Queries

I'm currently building a Nodejs microservice that submits graph traversal queries to an OrientDB. I was wondering if Gremlin queries are supported in the standard orientjs db.query() method, or if I need to do it all with SQL.

Upvotes: 0

Views: 407

Answers (1)

wolf4ood
wolf4ood

Reputation: 1949

Yes they are supported. You can fire gremlin query

db.query('g.V()', { language : "gremlin", class : "com.orientechnologies.orient.graph.gremlin.OCommandGremlin"}).then(function(res){
        console.log(res);
    })

Upvotes: 2

Related Questions