SlugValidator
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.
validateSlugs
method
(ctx: RequestContext, input: T, translationEntity: Type<E>) => Promise<T>InputWithSlug
id
property
ID | nulltranslations
property
Array<{ id?: ID | null; languageCode: LanguageCode; slug?: string | null; }> | nullTranslationEntity
Was this chapter helpful?