Skip to main content

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.

Signature

validateSlugs

method(ctx: RequestContext, input: T, translationEntity: Type<E>) => Promise<T>

InputWithSlug

Signature

id

propertyID | null

translations

propertyArray<{ id?: ID | null; languageCode: LanguageCode; slug?: string | null; }> | null

TranslationEntity

Signature
Was this chapter helpful?
Report Issue
Edited Apr 20, 2026ยทEdit this page