slugFieldName

slugFieldName

slugFieldName

The name of the Field used as the slug.

const slugField = collection.slugFieldName;

Type

  • string | null – The slug Field name or null if not defined.

Caveats

  • Only Collections that are not managed by a Plugin will have this value set.

  • Operations that rely on slugs may fail if the slug Field is not set.