Hi,
I have a datamodel in CDF and I want to run a GraphQL query through the SDK to retrieve specific data from the model. When I try to run
response = client.data_modeling.graphql.query(
id = ('sp_watercourse_data_model', 'Watercourse', 'v1'),
query = query
)
I receive the following error message:
CogniteGraphQLError: [GraphQLErrorSpec(message=Could not find data model with space=sp_watercourse_data_model, externalId=Watercourse and version=v1, locations=[], extensions={'classification': 'DataFetchingException'})]
However, when I list my models using
models = client.data_modeling.data_models.list(limit=100).to_pandas()
the model is in the dataframe as expected.
What causes this problem and how can I fix it?
thanks