Some problems about float types

Not sure.

He is using “eq”, equal to. By design seems logic to not return anything. For the query is not exactly the same as the one recorded. I would recommend using inequality combined with less than and greater than or equal.

{
  query(func: has(test))@filter(ge(test,37.796975) OR le(test,37.79697544)){
    test
  }
}

As it comes to float I do not know what the implication would be. Your call @paulftw . Let’s take the fractions of Bitcoin for example.

37.79697544 BTC = 242,165.22 USD
37.796975 BTC = 242,165,36 USD

0.14 cents difference. So every fraction of the float matters. In the sense that, they are not equal.

https://docs.dgraph.io/query-language#inequality

https://docs.dgraph.io/query-language#less-than-less-than-or-equal-to-greater-than-and-greater-than-or-equal-to

Cheers.