I can't find a way to create a vertex that holds a Geopoint using the gremlin javascript client (3.4.2).
The schema defined for the property is the following:
geopoint=mgmt.makePropertyKey('geopoint').dataType(Geoshape.class).cardinality(org.janusgraph.core.Cardinality.SINGLE).make();
Reading the documentation from JanusGraph I should be able to do something like this, both for querying and creating:
g.addV('location').property('geopoint', Geoshape.point(45.944, 18.485));
The problem is that I cannot find that 'Geoshape' type anywhere using the gremlin client. I've also tried to use as property value a GeoJSON and an object like '{lat: 45.848, lng: 16.487}' but neither of them worked.
Wich is the way to create and query a Geoshape.point for JanusGraph using javascript?