Hello,
Can we have multiple NoSQL DB for one app or not ?
The interface in apphq.shephertz.com seems to suggest so ( no Db created by default & drop downlist to choose DB ).
The API also requires us to enter the Database name everytime we make a request.
However when i try to save data in a Database using :
App42User user;
user.userName = sud->m_userid.c_str();
App42Object* app42Object = new App42Object();
app42Object->setObject("user_id", sud->m_userid.c_str());
app42Object->setObject("data", sud->m_user_data.c_str());
const char* dbName = "PLAYERS";
const char* collectionName = "Data";
App42API::setDbName(dbName);
m_service->AddUserInfo(app42Object, collectionName);
m_service->createOrUpdateProfile(&user, sud->m_cb);
I get the error :
"app42Fault":{"httpErrorCode":400, "appErrorCode":2610,"message":"Bad Request","details":"The request parameters are invalid. Storage '[PUBLIC]' already exists."}