Skip to main content

I am learning GraphQL queries in Congite by following the documentation About data modeling | Cognite Documentation

How can I add an additional filter condition based on functionalLocationParent object name value.

query{
listEquipment (filter: {and: :{catalogProfileDescription: {eq: "Compressors"}}]}) {
  items { 
    externalId
    name
    description 
    catalogProfileDescription
    functionalLocationParent {
      name
      description
    }
    cfihosEquipmentClass {
      name
      description
    }
  }
}
}

Hi @sudheerchonate ,

Could you please try using a filter similar to the one below?

 listEquipment (filter: {
and:
{catalogProfileDescription: {eq: "Compressors"}},
{functionalLocationParent: { name: { eq: "XXXXXX" } } }
]
})

Regards,

Kanchana


Hi @sudheerchonate,

Did you manage to try Kanchana’s suggestion?

Best regards,
Dilini


Hi @sudheerchonate,

I hope you were able to try out Kanchana’s suggestion. As of now, I will close this thread. If you have any questions, please feel free to create a post on Hub.

Br,
Dilini 


Reply