Data Manager GraphQL Polling effect - request data every 5 sec

Hi, after looking into your documentation on Data management and Data adapter I found that you guys have the option to work with GraphQL via adapter and that's great for what we are doing. But I couldn't find any information regarding "polling" similar to how Apollo GraphQL has it where we can request data every "N" second.

https://www.apollographql.com/docs/react/data/queries/#polling

I want to know if this is possible using Data management because it would be really beneficial for what we are doing and that is to have consistent updated data, and if so, please provide me with information regarding that API or an example of implementing this method.

 



2 Replies

PS Premkumar Sudalaimuthu Syncfusion Team March 30, 2022 02:48 PM UTC

Hi Thomas ,


We are checking with feasibility and will share further details within two business days on 1st April 2022. Until then we appreciate your patience.


Regards,

Premkumar S



PS Premkumar Sudalaimuthu Syncfusion Team April 1, 2022 01:27 PM UTC

Hi Thomas ,


The GraphQLAdaptor provides an option to retrieve data from the GraphQL server. Our EJ2 Gantt Chart supports GraphQLAdaptor , but it does not have the Polling support. However, we can achieve the same process in an alternate way by calling the refresh method at a certain time interval using the setInterval method to send the data fetching request. Refresh() method of Gantt component will help to re render the Gantt completely.


Regards,

Premkumar S


Loader.
Up arrow icon