r/dynamodb • u/digitil • Oct 23 '18
Javascript ORM for DynamoDB
Anyone have input into which ORM to use for Javascript? Specifically I'm doing serverless stuff in the browser using the AWS Javascript SDK.
I see a few options out there, but nothing seems to be a solid go to, so am looking for feedback / insights about pros and cons of these. I want to prefer awslab's dynamodb-data-mapper, but I do like the simplicity of being able to do things on the objects themselves like User.save(), which AWS's solution doesn't seem to support. Thoughts?
2
u/justnekohere Nov 29 '18
I'm using dynamoose for awhile now. And I was from mongoose. the thing works really well for me and the contributors of dynamoose are quite friendly when you are asking for guide or requesting a features. hope it works well for you!
1
u/snolangtc Apr 04 '19
dynamoose looks nice, I've been a mongoose user for a while, and that was promising. Dynogels on the other hand is easy to use (currently using it at job), but isn't supported anymore. I tend to stick with projects that usually have some activity in a decent amount of time...
1
u/thomaslsimpson Oct 31 '18
I'm sure you have your reasons for heading down the path you have, and I hate it when I ask a tech question and then people challenge my initial assertion (why even do that?) rather than help me. So, let me say right off that I have not used any of those tool and I can't say anything about them. If you're committed to ORM and feel like that's best for you, then I hope it works out well for you.
However, since it's been 7 days (I just found this sub myself) and no one has replied, I'll mention that you should probably look at AppSync (https://aws.amazon.com/appsync/) / Amplifi (https://aws-amplify.github.io/) and see if it fits your requirements.
Even if you don't want to use any of the AWS configured tools, the GraphQL connectors that are out there can get you a lot of headway with little effort.