Solved

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

  • 22 April 2023
  • 2 replies
  • 51 views

Userlevel 1
Badge

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.

icon

Best answer by Emil Sandsto 24 April 2023, 10:05

View original

2 replies

Userlevel 3

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

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!

Reply