Skip to main content
Question

Can we only run GraphQL queries only through a data model ?

  • October 18, 2024
  • 1 reply
  • 23 views

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. 

1 reply

Mithila Jayalath
Seasoned Practitioner
Forum|alt.badge.img

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


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings