I haven’t tried Mongoose that much since then, but I know they added type inference from schemas in one major release. So yes, there was a big improvement in that sense. About features that Aeria has and Mongoose doesn’t, well, I could name automatic reference resolution using the Aggregation Framework as I mentioned above, I think that’s one of the strongest features we currently have. Also our abstraction layer around MongoDB is much thinner, the whole project sitting in around 8k lines of code right now.

About Prisma, Aeria makes it easier to declare denormalized structures. Prisma also makes it unecessarily difficult to build cross-collection relations. On top of that, we aimed at a more powerful DSL that could express more than static data structure.

I’ve written an article detailing some Aeria highlights (since writting it I learned Prisma actually supports denormalized data structures through a feature called “composite types”), so please check it out if you want to learn more about the project: We finally have a fullstack framework for MongoDB | by Joaosan | Sep, 2024 | Medium

1 Like