Skip to main content
Planned for development

Feature request - graphql filter support for timeseries type in FDM

Related products:Data Modeling
  • Anita Hæhre
    Anita Hæhre
  • stig_kjemperud

Hi Team!

Right now graphql support for fetching FDM Data doesn't offer any filters for type "TimeSeries". Since Timeseries type usually has a lot of datapoints associated with it in any given model, fetching data through graphql api from it without any filter is extremely time consuming , especaially when you dont need all datapoints/timeseries from it. For example, right now when we want to fetch information only for non string timeseries, there is no way other than fetching all Timeseries associated and remove the ones that has "isString" property as false which slows down some parts of our appplication.

So if we can get graphql filter support for timeseries type, we will be able to optimise things in our side.

Thanks & Regards,
Sangavi M

8 replies

Forum|alt.badge.img

Hi @Sangavi M, and thanks for this insight!

 

So you’re looking for a way to limit the returned data point payload (using a filter) in the GraphQL interface?

Any particular filter(ing) you’re looking for? Data point value range? Time range? 


Forum|alt.badge.img

Or are we talking about filtering on the properties of the time series itself?


  • Author
  • Seasoned
  • 16 replies
  • June 12, 2023

Hi @Thomas Sjølshagen ,

Thanks for the reply. Im loooking to filter based on IsString property of timeseries for my particular use case.


AndersM
Seasoned Practitioner
  • Seasoned Practitioner
  • 31 replies
  • June 29, 2023

Hi Sangavi,

Edit: Last response was probably wrong.

Currently, if you need to work with time series extensively, consider the time series REST API, either directly (https://developer.cognite.com/api/#tag/Time-series/operation/listTimeSeries) or via an SDK such as the Python SDK - https://cognite-sdk-python.readthedocs-hosted.com/en/latest/core_data_model.html#list-time-series

Thanks,

-AndersM


Anita Hæhre
Seasoned Practitioner
Forum|alt.badge.img+1
  • Head of Academy and Community
  • 590 replies
  • July 6, 2023

Hi @Sangavi M hope you’re doing well. I wanted to check to see if the responses from @Thomas Sjølshagen and @AndersM were helpful in addressing your needs? If you have any further questions or needs do let us know 🚀


AndersM
Seasoned Practitioner
  • Seasoned Practitioner
  • 31 replies
  • August 31, 2023

Hi again,

We have ongoing development work on improving the representation of time series data in data modeling, While I cannot yet commit to a release date for this I believe we will have an improvement that may fill in some of the described requirements in an upcoming CDF release. Don’t hold your breath just yet, though, if you need this urgently then using the existing time series API is the recommended workaround.

Thanks,

-AndersM


Anita Hæhre
Seasoned Practitioner
Forum|alt.badge.img+1
  • Head of Academy and Community
  • 590 replies
  • August 31, 2023
Gathering InterestPlanned for development

Anita Hæhre
Seasoned Practitioner
Forum|alt.badge.img+1
  • Head of Academy and Community
  • 590 replies
  • August 31, 2023

 @Sangavi M happy to announce this work has been prioritized and that our team is currently in the scoping and design phase. Thanks for sharing your idea! 


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings