What I want to do
I want to have in return float number with whole precision (like 0.123456789…), but Dgraph round this number to precision 6. So there is any possible way to return the whole number?
What I did
At this moment I have 2 ways:
- First is just store shares percent as a string, but because it’s impossible in Dgraph to compare different types, I’ve losing functionality to use gt, ge, etc.
- Second is add to the schema one predicate with float type for comparison and each one with string type to return, but its kinda kludge.