Hi Team,
I am trying to use uniqueness constraint in model using Cognite UI -
type EntityNew @container(indexes: [{identifier : "entityTypeIndex", fields : ["id"]}], constraints : [{identifier:"id",constraintType:UNIQUENESS,fields:["id"]}]){
id: String!
name: String!
dept: Department
}
type Department{
name: String
}
I am getting error - invalid: 400 Bad Request. Text: "{ "error": { "code": 400, "message": "Missing required field: constraintType" } }" I also tried using GraphQL API and facing same issue. Can you please help.
Best answer by Snehal-Jagtap
View original