Templating the UID field
The UID field is a unique identifier that can be used specifically to create SEO-friendly website URLs.
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.
const uid_value = document._meta.uid;
Was this article helpful?
Can't find what you're looking for? Get in touch with us on our Community Forum.