I'm trying to use a graphql query in my python notebook. And I'm using this code snippet given in the sdk docs.
from cognite.client import CogniteClient
>>> c = CogniteClient()
>>> res = c.data_modeling.graphql.query(
... id=("mySpace", "myDataModel", "v1"),
... query="listThings { items { thingProperty } }",
... )
I dont see data_modeling.graphql.query() method available. I see the below error message.
AttributeError: 'DataModelingGraphQLAPI' object has no attribute 'query'
I'm using sdk version 7.5.1. How do I run my grapghql query?