Skip to main content

SlugStrategy

Defines the strategy for generating slugs from input strings. Slugs are URL-friendly versions of text that are commonly used for entity identifiers in URLs.

Example

Ts
Signature

generate

method(ctx: RequestContext, params: SlugGenerateParams) => string | Promise<string>

Generates a slug from the input string.

Was this chapter helpful?
Report Issue
Edited Feb 25, 2026ยทEdit this page