I am trying to migrate an application from Rails/Mongoid to Play/Reactivemongo with reactivemongo-extensions. Many of my documents have more than 22 fields. Play's JSON library does not seem to be able to handle > 22 fields. What is the preferred pattern to deal with database schemas having more than 22 fields in play/scala/reactivemongo?
I feel like I must be missing a common design pattern because this seems like a very common use case. A web framework that cannot work with even moderately sized database tables would not be very useful so I think I must be missing an obvious solution.
You can map your flat json structure to a hierarchical object structure. Then you don't need to deal with huge objects and you can have more than 22 fields.