Filter with math

Hi @BFine9,

To to that, you will have to use Dgraph’s built-in comparator functions,
Depending on your use case, something like @filter(gt(Distance, 1000)) will be required.

Note that to be able to run comparator functions on Distance, it will have to be indexed.

You may follow this tutorial to read more, https://dgraph.io/docs/tutorial-3/ . Specifically this.

1 Like