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:
![](https://uploads-eu-west-1.insided.com/cognite-en/attachment/5ec85c14-b1b0-405d-9a9a-b805ad84c74c.png)
![](https://uploads-eu-west-1.insided.com/cognite-en/attachment/b20083c3-dcbf-4885-9a4b-61f4d8eb77be.png)
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?
![](https://uploads-eu-west-1.insided.com/cognite-en/attachment/1aef050a-ebad-4453-a548-ed5ca432bfaa.png)
Best answer by hasitha malinga
View original