i trying create multiple collections in mongodb using reactivemongo driver in play framework.
i using following configurations:
application.conf: mongodb.uri = "mongodb://localhost:27017/somedb" in controllers class:
def usercollection = reactivemongoapi.db.collection[bsoncollection]("user") (i want store user info in collection). code works fine till here. when try add collection in want store form data of different format.
def formcollection = reactivemongoapi.db.collection[bsoncollection("form") and when run code, following error:
reactivemongo.core.errors.connectionnotinitialized: mongoerror['connection missing metadata (like protocol version, etc.) connection pool being initialized
how achieve ??
Comments
Post a Comment