This depends on the case, in my case (and many other examples I’ve seen) – the slugs are generated by using Drupal’s path aliases. And Drupal’s paths depend (usually) on the node’s title.
This has unforeseen consequences, once you change the title, the path is changed too and on the next build, Gatsby will stop recognizing the old paths, resulting in 404s. This happened to me – when I wanted to rename the initial article as “Part 1” (because I’ve written a “Part 2” later), all my social-media posts were broken and Goo…
Go to Source