Does .math() always return a Double?
I have the following query, how can I get the result as a Long instead of a Double? In context, I want this query to be unioned with a set of other numbers which are Longs and then I want to take the .max() of them. But I can't do that if I have a mix of Long and Double
2 Replies
I need .math() to return a Long
I have discovered a workaround, but it's a little bit awkward.
there has been some discussion of adding more type conversion steps as first-class citizens. until then there aren't too many options for changing types in Gremlin. it generally something left for the client-side.