Search code examples
reactjsgraphqlapollo-clientreact-admin

react-admin ListGuesser showing "No results found"


My Resource -:
<Resource name="ReliabilityEventLog" list={ListGuesser} />


This is my response from the server_:

{
"data": {
"items": [{
"createdAt": "2020-12-04T04:24:00.118Z",
"deletedAt": null,
"eventName": "Confirmed Withdraw* between 5 and 24 hrs",
"eventDate": "2020-12-04T00:00:00.000Z",
"eventPoint": -20,
"shiftId": 44332,
"facilityName": "Tester Facility Friendswood",
"facilityId": 927,
"id": 4,
"nurseId": 12508,
]}}

The ListGuesser renders "no results found" and the data was returned from the network tab.

Is there any explanation for this behavior or how to fix it? Any help will be appraciated.


Solution

  • The Problem is from my graphQL server not returning the count of the query, so the dataProvider was unable to paginate the result successfully, which leads to an inability to render.