Templating the UID field

The UID field is a unique identifier that can be used specifically to create SEO-friendly website URLs.


Before Reading

This article assumes that you have saved the document object in a variable named document as shown in the Retrieve the document object page.

Access the UID value

Here's how you would access the UID value from the retrieved document object.

Copy
const uid_value = document._meta.uid;