Skip to main content

I created a data model that contains an interface (this is to allow polymorphism). When a type references the interface then the the Data Management table shows this error:

It seems the UI relies on every reference to contain an externalId field, and that this field is implicitly defined for types but not for interfaces, as the GraphQL query returns with this error: "Validation error of type FieldUndefined: Field 'externalId' in type 'Twin' is undefined @ 'listEquipment/items/twins/items/externalId'"

In the above Twin is an interface type, and Equipment contains a field which is a reference to an array of Twin.

Hi,

Thanks for reaching out. Interfaces are not properly supported and should not have been added as a choice in the UI quite yet. When we reach GA, we fully support what you try to achieve here. So whatever you do with interfaces can go wrong in the beta version. 

Sorry about the inconvenience, and hope you will enjoy what we have to offer in a couple of months :) 


Reply