Skip to main content
Answer

Data model query for Bi-directional relationships

  • November 13, 2023
  • 3 replies
  • 140 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?
 


 

Best answer by hasitha malinga

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

3 replies

hasitha malinga
Practitioner
Forum|alt.badge.img
  • Practitioner
  • Answer
  • November 22, 2023

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


Dilini Fernando
Seasoned Practitioner
Forum|alt.badge.img+2
  • Seasoned Practitioner
  • November 30, 2023

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

 


Forum|alt.badge.img+1
  • Active
  • March 14, 2024

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

Broken link?