🔮 Sanity Create is here. Writing is reinvented. Try now, no developer setup

Clarification on slug generation in JS client for document creation/patching.

4 replies
Last updated: Jun 16, 2023
Hi, I have a question about the slug type when we use js client. The client will not generate right?
Jun 16, 2023, 5:33 PM
Correct. Slug generation is not automatic. When you mention using the JS client, do you mean to create/patch documents or to fetch them?
Jun 16, 2023, 5:42 PM
create on, on the create/patch, the slug will not be generated right?
Jun 16, 2023, 5:57 PM
Right. You could implement this yourself, if you wanted to and have the necessary data (e.g., the title), but it won’t happen automatically.
Jun 16, 2023, 6:01 PM
I presumed this. I just wanna have shure because this information is not clear at documentation.
Jun 16, 2023, 6:02 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?