-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic collection name #8
Comments
I haven't tried but JsObject should work as is. Currently there is no way of specifying the collection name dynamically. I have also been thinking of it. Give me 2 or 3 days time or submit a PR :) |
I can look for a PR, but maybe you'll be more faster than me. Anyway, I think the above way could be very interesting for many people. |
Agreed. Expect a snapshot release soon. |
I have released a new snapshot: 0.10.0.5-SNAPSHOT. There is no documentation yet. Can you review the test code and comment on usability? https://github.com/fehmicansaglam/reactivemongo-extensions/blob/0.10.x/json/src/test/scala/dao/DynamicJsonDaoSpec.scala |
Looks like a natural extension of existing features 👍 I did some tests and everything seems to work |
Cool! We are also releasing a snapshot from ReactiveMongo organization today. |
Hi Fehmi,
There is a way to change the collection name dynamically with the JsonDao and work with JsObject (without case class)? I'm working with several collection dynamically, each one can be created or removed on the fly.
For example:
No case class, just an easy way to access on different collection with the magic power of reactivemongo extensions :)
The text was updated successfully, but these errors were encountered: