Event Name

CreateEntityResolver

Event Parameters

template
namedTypes.File

A template file that is used to generate the resolver. This is the default template that is used for this event: resolver.template.ts. You can manipulate or replace the template with a new template in your plugin.

entityName
string

The name of the entity for which we are generating the resolver.

entityServiceModule
string

The path to the entity service module.

serviceId
namedTypes.Identifier

The Identifier of the service that is used as the class name. For example CustomerService.

resolverBaseId
namedTypes.Identifier

The Identifier of the base resolver that is used as the class name. For example CustomerServiceBase.

templateMapping
{ [key: string]: any }

An object with values that are available in the interpolation process of the template. This default object with the available parameters can be found here. You can manipulate the object by adding new values, or replacing existing values that will be used in the template when creating the resolver file.