has function with pagination (first) does not return correct count #4282
Labels
area/querylang/pagination
Related to pagination: first, offset, etc
area/querylang
Issues related to the query language specification and implementation.
kind/bug
Something is broken.
priority/P1
Serious issue that requires eventual attention (can wait a bit)
What version of Dgraph are you using?
master (0259f3d)
I suspect this bug got introduced in #3970.
Have you tried reproducing the issue with the latest release?
does not happen in v1.1.0.
What is the hardware spec (RAM, OS)?
Ubuntu Linux 64 GB
Steps to reproduce the issue (command/config used to run Dgraph).
has()
withfirst
limit for a language string predicatename@en
:The query response returns
{"count": 7}
. If I setfirst: 100
, I get{"count": 96}
.Expected behaviour and actual result.
Since there are >100
name@en
edges, I expected the paginated result withfirst: 10
to return 10 nodes andfirst: 100
to return 100 nodes.The text was updated successfully, but these errors were encountered: