Data model query for Bi-directional relationships

  • 13 November 2023
  • 2 replies

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 ( 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 22 November 2023, 08:27

View original

2 replies

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

Userlevel 3
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."