How can I find the @db notation on a field?

#1

How can I find the @db notation on a field? For example, TypeA has the field fieldA with @db(timedValueHistoryField=‘fieldB’) on it. I want to be able to get that @db info programatically

0 Likes

#2

TypeA.fieldType('fieldA').extensions().db

If the type name is variable, you can do something like

c3Type('TypeA').fieldType('fieldA').extensions().db

1 Like