Function: Expose()
Expose(
params
): (target
) =>void
Expose the model through API or GraphQL if it exists The model will be exposed using its class name + 's' If you need to have a specific plural, use the annotation WebdaPlural to define the plural name
Parameters
• params: Partial
<ExposeParameters
>= {}
Returns
Function
Parameters
• target:
CoreModelDefinition
<CoreModel
>Returns
void