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.
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.