SlugValidator
Used to validate slugs to ensure they are URL-safe and unique. Designed to be used with translatable entities such as Product and Collection.
constructor
method
(connection: TransactionalConnection) => SlugValidatorvalidateSlugs
method
(ctx: RequestContext, input: T, translationEntity: Type<E>) => Promise<T>id
property
ID | nulltranslations
property
Array<{ id?: ID | null; languageCode: LanguageCode; slug?: string | null; }> | nullWas this chapter helpful?