Skip to main content

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

constructor

method(connection: TransactionalConnection) => SlugValidator

validateSlugs

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

id

propertyID | null

translations

propertyArray<{ id?: ID | null; languageCode: LanguageCode; slug?: string | null; }> | null
Signature
Was this chapter helpful?
Report Issue
Edited Feb 25, 2026ยทEdit this page