Collection _id length?

Can i change meteor collection _id generation to generate a 6 char id instead of 16 char ?

it’s 24 chracters

and it’s hard-coded

1 Like

That’s the mongo document id. Meteor ids can be generated via Random.id() and default to 17 characters. If you’re wanting a short id perhaps you can just add another field on insert like shortId and set it to Random.id(6)

1 Like