Skip to main content
Haris vk
Seasoned ⭐️⭐️
Seasoned ⭐️⭐️
September 3, 2025
Question

How to use Graphql

Hi,
In our CDF project, how can we use GraphQL and how  we can connect to project in our react app

Could you please guide me?

Thanks!

    5 replies

    Mithila Jayalath
    Expert ⭐️⭐️⭐️⭐️
    Expert ⭐️⭐️⭐️⭐️
    September 4, 2025

    ​@Haris vk Can you please let me know the project that you are working on currenly?

    I hope the code snippet that Branko shared in the below question will provide you an answer to “how can we use GraphQL”

     

    Haris vk
    Seasoned ⭐️⭐️
    Haris vkAuthor
    Seasoned ⭐️⭐️
    September 5, 2025

    hi ​@Mithila Jayalath 


     

    I am writing to request that our client ID (1b90ede3-271e-401b-81a0-a4d52bea3273) be granted the necessary permissions for the publicdatacdm project. Specifically, we require access to the following:

    Data modeling

    GraphQL endpoint

    Space and data model listing

    Thanks

    Mithila Jayalath
    Expert ⭐️⭐️⭐️⭐️
    Expert ⭐️⭐️⭐️⭐️
    September 5, 2025

    ​@Haris vk can you please try again now and let me know whether the client ID (1b90ede3-271e-401b-81a0-a4d52bea3273) as read access to Data modeling, GraphQL endpoint, Space and data model listing?

    Haris vk
    Seasoned ⭐️⭐️
    Haris vkAuthor
    Seasoned ⭐️⭐️
    September 8, 2025

    hi ​@Mithila Jayalath ,

     

    app.cognite.service: Found 1 data model

    In the publicdatacdm space, only one data model is currently available, which is related to 3D scenes.

    However, our goal is to create a knowledge graph, which requires asset-related data models. Since the available model is focused on 3D scene configuration, it doesn't cover the necessary asset relationships.

    To move forward with building a knowledge graph, we need:

    • Asset-centric data models.

    • A clustering mechanism to visualize and structure the knowledge graph meaningfully.

     any recommended approach to achieve this with the current setup?

    Mithila Jayalath
    Expert ⭐️⭐️⭐️⭐️
    Expert ⭐️⭐️⭐️⭐️
    September 8, 2025

    ​@Haris vk I’m not sure whether the publicdatacdm project has the required data for your usecase. Also please do not comment the same requirement in all posts.