Skip to content

Simple query gets undefined #12

@ticholNyler

Description

@ticholNyler

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)
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions