Skip to main content
Solved

Data model query for Bi-directional relationships

  • November 13, 2023
  • 3 replies
  • 124 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. 

View original
Did this topic help you find an answer to your question?

3 replies

hasitha malinga
Practitioner

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
  • 671 replies
  • 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
  • 2 replies
  • March 14, 2024
hasitha malinga wrote:

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

Broken link?


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