I am a newbie to the gremlin. I am trying to get some random vertices based on some condition. But if I am using sample method with some mathematical computation it is not working. But if I give integer values it is working fine.
The following query is working fine:
g.V().hasLabel('Person').sample(1)
The following query is not working:
g.V().hasLabel('Person').sample(math('4/2'))
Actually, based on the number of persons I should perform some mathematical computations inside sample method. Thanks in advance