How can I check the annotation on type in javascript?

#1

Trying to see the database annotation of a type, how can I do that programmatically in JS?
In console I can do c3Grid(MyType) and see the annotations.

0 Likes

#2

Use the typesystem API ‘extensions’, eg POCMeasurement.extensions() will return the type level annotations. Im not sure of how to do it for field level annotation.

0 Likes

#3

Thanks, it seems to be recursive too: MyType.fieldType(“myField”).extensions() works

1 Like