Skip to main content

Hello everyone,

I am using cognite client and wondering if I can write simple graphQL queries and run it through. 

Example. Select all assests.

But it seems, it only provides option using one of the data models.

 

Newbie to CDF. 

Hello @Vik ,

Currently, there is no GraphQL interface available in the Asset service. However, you can model assets using the Data Modeling service, which supports querying through GraphQL. By representing your assets in the Data Modeling service, you'll be able to perform GraphQL queries, including retrieving asset information.

I recommend checking out this article which explains how assets are represented in the Data Modeling.

Hope this helps!

Best regards,
Mithila Jayalath


Reply