Does MongoDB have an official naming convention for collection and field naming, at least internally? I tried to find any related documentation and couldn’t found any. However, there are external blog posts like these which suggest different practices.
Look forward to hearing the thoughts from the internal team and community.
1 Like
Hi @DhammikaMare,
Welcome to MongoDB community.
We do not have any specific convention however we do have naming limitations and antipattern:
https://docs.mongodb.com/manual/reference/limits/#naming-restrictions
Having said that, internally you might notice that we use a known js convention of camle casing any word starting from the second word:
thisIsMyField : ...
Best
Pavel
3 Likes
Thank you @Pavel_Duchovny for sharing naming restrictions and a sample. Will continue with js convention.
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.