Connection.totalCount returns -1 when it should return 0 using Entity Framework
willgittoes opened this issue · 2 comments
willgittoes commented
Product
Hot Chocolate
Version
14.0.0
Link to minimal reproduction
ChilliCream/hotchocolate-examples#65
Steps to reproduce
totalCount returns -1 when it should return 0
- Check out and run the updated Contoso blog example from here: ChilliCream/hotchocolate-examples#65
- Run the following query:
query {
students ( first:10, where: {id: {eq: 69}} ) {
nodes {
id
}
totalCount
}
}
What is expected?
The following response:
{
"data": {
"students": {
"nodes": [],
"totalCount": 0
}
}
}
What is actually happening?
The following response:
{
"data": {
"students": {
"nodes": [],
"totalCount": -1
}
}
}
Relevant log output
No response
Additional context
No response
willgittoes commented
ALSO: If you remove first: 10
from the query, I get the error:
Never mind: (Just had to read about RequirePagingBoundaries
)
willgittoes commented
Thank you so much! <3