inolen / titan-node

Wrapper around gremlin-node to provide out of the box support for Titan graph database
23 stars 13 forks source link

Simple query gets undefined #12

Open ticholNyler opened 7 years ago

ticholNyler commented 7 years ago

I am running Titan on AWS with Dynamo storage. Everything hooks up fine and was able to add vertexes using gremlin console. I have a js file that uses titan-node to check a simple query. It keeps coming back undefined. Pretty sure I am missing something simple.

Here is my code.

var Titan = require('/root/node_modules/titan-node');
var gremlin = new Titan.Gremlin({ loglevel: 'OFF' });

var TitanFactory = gremlin.java.import('com.thinkaurelius.titan.core.TitanFactory')
var graph = TitanFactory.openSync('conf/gremlin-server/dynamodb.properties')
var g = gremlin.wrap(graph)

g.V('name', 'jason').next(function (err, jason) {
  console.log(jason)
});
inolen commented 7 years ago

Hey, this is a totally unmaintained project at this point, check the notes at the top of https://github.com/inolen/gremlin-node.

ticholNyler commented 7 years ago

Sorry I missed that. Installing ts-tinkerpop has been a nightmare, that is why I reverted to this solution. Thanks