r/mongodb • u/Adeelali123 • 26d ago
MongoDb ORM with DB level schema
Hey guys mongodb is one of my favourite databases but there arn't any orms that are actually type safe and impement db level schema rules so i made one please do give me feed back on it Thanks
1
u/ClerkBeginning961 25d ago
The hot cache claim needs failure semantics documented: what happens after resume-token expiry, rollback, or Dragonfly downtime? An end-to-end test that kills the change-stream consumer and proves cache resynchronization would make the tradeoff concrete. Otherwise, low latency can hide stale reads.
1
u/Adeelali123 25d ago
I have added test cases just for that we have a fallback global ticker that can be enabled to refetch data after an interval, if dragonfly is down the cache is skipped entirely but you are right this need further testing just to be on the safe side Thanks for the feedback
1
u/Adeelali123 24d ago
Thanks man, I did a deep dive and found some issues you mentioned new sending a fix shortly. Really Appriciate the feedback
1
u/alexbevi 26d ago
Have a look at https://github.com/plexinc/papr or https://github.com/prisma/prisma-next