Solved

Data model query for Bi-directional relationships

  • 13 November 2023
  • 3 replies
  • 115 views

I have a question about querying a data model using the CDF SDK.

In the Cognite SDK docs there is an example for retrieving actors in a movie (https://cognite-sdk-python.readthedocs-hosted.com/en/latest/data_modeling.html#query-instances) from the following data model:
 


But if we would change this to finding which pumps belongs to a given facility from this data model (picture below), using a bi directional relationship between facility and pump, what changes must be made to the example from the sdk docs for this to work?
 


 

icon

Best answer by hasitha malinga 22 November 2023, 08:27

View original

3 replies

Hi @Årne Reime For bi-directional relationships, you could refer to this document for more information. 

Userlevel 4
Badge +2

Hi @Årne Reime,

We are following up to see whether you're satisfied with the responses you've received.

If you found the responses offered by our community members to be instructive and helpful, we kindly request that you consider marking the most helpful response as the "Best Answer."

Br,
Dilini

 

Hi @Årne Reime For bi-directional relationships, you could refer to this document for more information. 

Broken link?

Reply