Hello,
we´re wondering how we should ingest the store with resources and events "the right way". We digged around the documentation and it´s also working, but we´re not shure, if we´re using it the way its intended. Maybe a point to the documentation is maybe enough, but we cannot find the "right" information.
What we´re doing: We´re having an application that uses graphql and polling. We´re polling the server every 10 seconds for an update for the scheduler (resources and events). We´re receiving the fulll set of data, when request completes (no delta) - so each and every time we have to "overwrite" the content of the store (resources and events) with "new/fresh" data. The data is, most of the time, the same, but changes during the day (another users changes something). At the moment we´re doing this. Even, if something changes, e.g. an update to an event happens, we´re refetching all the data for the given timespan.
What we´re doing something like this at the moment:
subscribeToData( result => {
this.resourceStore.add(this.vehicleService.convertVehiclestoResources(result.data.vehicles));
this.eventStore.add(this.tourService.convertToursToEvents(result.data.tours));
})
(Please ignore the convert method. )
Is this right? We´re seeing many other methods for ingesting data into the store. The documentation (https://www.bryntum.com/docs/scheduler/#Core/guides/data/storebasics.md) only shows how to start a store with data or use a remote - which we cannot use, since we´re having an graphql endpoint.
Thanks
Marius