Questions tagged [gremlin-scala]

Gremlin-Scala is the Scala wrapper for the Gremlin graph traversal language of Apache TinkerPop™

Gremlin-Scala is a wrapper to Gremlin, the graph traversal language of Apache TinkerPop™ providing a Scala idiomatic and type safe way to interact with Gremlin.

4 questions
2
votes
1 answer

How to query using vertexId if vertex is made using composite key in scala gremline

We are using this lib to query dse graph. https://github.com/mpollmeier/gremlin-scala we can query and get vertex using vertexId if vertex primary key just single key like UUID. for ex. g.V("veretxId=UUID,~label=vertexLabel") But if vertex primary…
2
votes
1 answer

Scala: How to return a tuple in a function? "type mismatch"

I'm using the library gremlin-scala to interact with Janusgraph. Using the DSL, a way to insert a new vertex is by doing the following: val Id = Key[Long]("id") val Name = Key[String]("name") graph + ("label", Id -> 42, Name -> "Mike") I want to…
drum
  • 5,416
  • 7
  • 57
  • 91
1
vote
0 answers

Testing and Mocking ScalaGraph with gremlin

I have a Service class that i am trying to unit test. The service class is as follows -: class BtoService @Inject()(db: GrDbConnection, businessService: BusinessService, vertexIdGenerator:…
1
vote
3 answers

Unsupported property value type: java.util.LinkedHashMap when writing to Neptune

Im using Gremlin-scala 3.4.1.5 against Neptune and I'm unable to add a vertex using a case class with a List or Set like so. Add vertex seems to work when that doesn't exist //connection Cluster.build() .addContactPoint(endpoint) …
Bowofola
  • 1,132
  • 9
  • 12