TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Mongoose (MongoDB ODM) model name pluralization logic

1 pointsby tardismechanicalmost 4 years ago

1 comment

al2o3cralmost 4 years ago
Interesting to compare with a similar list in ActiveSupport:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;rails&#x2F;rails&#x2F;blob&#x2F;main&#x2F;activesupport&#x2F;lib&#x2F;active_support&#x2F;inflections.rb" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rails&#x2F;rails&#x2F;blob&#x2F;main&#x2F;activesupport&#x2F;lib&#x2F;a...</a><p>Some parts are reordered, some new parts are added, but there&#x27;s some definite overlap (ala &quot;conserved sequences&quot; in DNA). The list of &quot;uncountables&quot; is quite a bit more detailed in Mongoose.