TranslatableSaver
A helper which contains methods for creating and updating entities which implement the Translatable interface.
Example
constructor
method
(connection: TransactionalConnection) => TranslatableSavercreate
method
(options: CreateTranslatableOptions<T>) => Promise<T>Create a translatable entity, including creating any translation entities according
to the translations array.
update
method
(options: UpdateTranslatableOptions<T>) => Promise<T>Update a translatable entity. Performs a diff of the translations array in order to
perform the correct operation on the translations.
Was this chapter helpful?