function
Slug
func Slug(
name,
sourcePath string,
options ...StringOption,
) DefinitionDefine a required, unique, indexed text slug derived from another string field.
The server normalizes create and update values, follows source changes while generated, and preserves manual overrides. Sources may traverse non-repeated groups but cannot be localized.
Example
field.Slug("slug", "title", field.Label("URL slug"))Related types
StringOptionOptions accepted by Text, Slug, Textarea, Email, Code, and Date.
DefinitionAn immutable authored field definition.