Feature Request: custom @directives in FDM model definition language

Related products: Data Modeling

Allow custom directives to be defined in the FDM language. Currently, you cannot create models with new directives.

 

directive @displayName on FIELD_DEFINITION

type Wellbore {

   FacilityName: string @displayName

   ...

 

Use case: I want to create a data API with annotation. GraphQL is descriptive, i.e. I can introspect on the model definition. In the example above, I could use the @displayName annotation to know which attribute my client should use when displaying a data item.

Hi @tom, I’ve made this into a feature request for you. I’ll ask a product manager to follow up on your idea. Thanks!


NewGathering Interest