Skip to main content
Seasoned ⭐️⭐️
Apr 22, 2023 5:04 AM UTC
Solved

No cursor provided in the GraphQL response for timeseries datapoints in FDM

Hello team,

When we try to get the timeseries data points in FDM using GraphQL, we get only 10 data points in the response.

No cursor is provided so that we can try to retrieve the further data points.

Details of the model:

project: slb-pdf

model: Avocet test data model with timeseries

 

Please let us know how we can retrieve all the data points.

Practitioner ⭐️⭐️⭐️
Apr 24, 2023 8:05 AM UTC

Hey Gargi!

The default limit is quite low (just 10 items), so increase it by setting the limit parameter of the datapoints field. The maximum limit is 10000 for the whole query, which means that if you use listTimeSeriesRef(first: 100), the max limit is 100 data points per time series.

We don’t support pagination out of the box for datapoints, however it's possible to manually paginate by adjusting the start and end time range (two filters available on the datapoints field).

I hope your team finds this helpful!

2 replies

Lead Product Manager
Apr 22, 2023 6:07 AM UTC

I have shared your question with our development team. Will let you know as they are able to work on this starting next week.

Practitioner ⭐️⭐️⭐️
Apr 24, 2023 8:05 AM UTC

Hey Gargi!

The default limit is quite low (just 10 items), so increase it by setting the limit parameter of the datapoints field. The maximum limit is 10000 for the whole query, which means that if you use listTimeSeriesRef(first: 100), the max limit is 100 data points per time series.

We don’t support pagination out of the box for datapoints, however it's possible to manually paginate by adjusting the start and end time range (two filters available on the datapoints field).

I hope your team finds this helpful!