Solved

FDM- Unable to create Uniqueness constraint

  • 23 March 2023
  • 3 replies
  • 47 views

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.

icon

Best answer by Snehal-Jagtap 24 March 2023, 06:27

View original

3 replies

Userlevel 4
Badge

Snehal,
A ticket has been created to address resolution of this issue.  We will update you once resolved.

Regards,
Jason

Thanks Jason!!

Userlevel 4
Badge

This issue has been resolved.

Reply