{"action":"created","issue":{"url":"https://api.github.com/repos/automategreen/dynamoose/issues/134","repository_url":"https://api.github.com/repos/automategreen/dynamoose","labels_url":"https://api.github.com/repos/automategreen/dynamoose/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/automategreen/dynamoose/issues/134/comments","events_url":"https://api.github.com/repos/automategreen/dynamoose/issues/134/events","html_url":"https://github.com/automategreen/dynamoose/issues/134","id":225957023,"number":134,"title":"Table name pluralization -- similar to Mongoose","user":{"login":"opreaadrian","id":2746712,"avatar_url":"https://avatars0.githubusercontent.com/u/2746712?v=3","gravatar_id":"","url":"https://api.github.com/users/opreaadrian","html_url":"https://github.com/opreaadrian","followers_url":"https://api.github.com/users/opreaadrian/followers","following_url":"https://api.github.com/users/opreaadrian/following{/other_user}","gists_url":"https://api.github.com/users/opreaadrian/gists{/gist_id}","starred_url":"https://api.github.com/users/opreaadrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opreaadrian/subscriptions","organizations_url":"https://api.github.com/users/opreaadrian/orgs","repos_url":"https://api.github.com/users/opreaadrian/repos","events_url":"https://api.github.com/users/opreaadrian/events{/privacy}","received_events_url":"https://api.github.com/users/opreaadrian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-05-03T11:36:00Z","updated_at":"2017-05-22T09:53:59Z","closed_at":null,"body":"I've been migrating from MongoDB + Mongoose to DynamoDB and I really appreciate the things this module does. I managed to do an almost seamless migration, with very little modification. One thing I'm missing in dynamoose is the default collection name pluralization Mongoose offered. \r\n\r\nAs far as most of the AWS DynamoDB training materials, tutorials and articles go, they all suggest using plural form for table names.  Would you consider introducing such functionality in the library? \r\n\r\nIf this sounds like a useful feature, I could go ahead and add a pull request to introduce it. I already went through the mongoose repository and found the functionality which adds the plural form for MongoDB collection names.\r\n\r\nThe details are here: https://github.com/Automattic/mongoose/blob/master/lib/utils.js#L23\r\n\r\nAdrian."},"comment":{"url":"https://api.github.com/repos/automategreen/dynamoose/issues/comments/303054298","html_url":"https://github.com/automategreen/dynamoose/issues/134#issuecomment-303054298","issue_url":"https://api.github.com/repos/automategreen/dynamoose/issues/134","id":303054298,"user":{"login":"opreaadrian","id":2746712,"avatar_url":"https://avatars0.githubusercontent.com/u/2746712?v=3","gravatar_id":"","url":"https://api.github.com/users/opreaadrian","html_url":"https://github.com/opreaadrian","followers_url":"https://api.github.com/users/opreaadrian/followers","following_url":"https://api.github.com/users/opreaadrian/following{/other_user}","gists_url":"https://api.github.com/users/opreaadrian/gists{/gist_id}","starred_url":"https://api.github.com/users/opreaadrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opreaadrian/subscriptions","organizations_url":"https://api.github.com/users/opreaadrian/orgs","repos_url":"https://api.github.com/users/opreaadrian/repos","events_url":"https://api.github.com/users/opreaadrian/events{/privacy}","received_events_url":"https://api.github.com/users/opreaadrian/received_events","type":"User","site_admin":false},"created_at":"2017-05-22T09:53:59Z","updated_at":"2017-05-22T09:53:59Z","body":"That's better. I would have instinctively added it to the default behavior, just like Mongoose. So it will be opt-in rather than opt-out, like in the case of Mongoose. \r\n\r\nThen, it will be an option of the `dynamoose#model()` function. "}}
{"actor":{"display_login":"opreaadrian"}}