Is there a way to shorter id that auto generated in mongodb?

System Information
  • Strapi Version: 3.4.1
  • Operating System: macos 11.1
  • Database: mongodb
  • Node Version: v14.15.2
  • NPM Version: 6.14.9
  • Yarn Version: 1.22.10


here i want to reduce the length of id to 6 is there a way to do it inside strapi to change the pattern of id generation? thanks.

Currently no, this is a mongoDB default and we don’t currently offer the ability to change the ID name or type (see: Troubleshooting - Strapi Developer Documentation )