Hi Guys,
I'm trying to fetch multple document by using "FindDocumentByQuery" and tried to use the one with vector parameter. My goal is query document with different userID's. Is this possible?. I'm using cocos2d-x. Here's my code.
std::vector<string> userIds;
for(std::vector<FBUserData>::iterator it= pVect.begin(); it != pVect.end(); ++it)
{
FBUserData player = *it;
string userID = StringUtils::format("%llu",player.userID);
userIds.push_back(userID);
}
Query *query = QueryBuilder::BuildQuery(KEY_USER_ID, userIds , APP42_OP_EQUALS);
StorageService *storageService = App42API::BuildStorageService();
storageService->FindDocumentByQuery(DB_NAME, COLLECTION_SCORES,query,app42callback(App42Utils::onStorageRequestQuery, this));
EDITED: Added screenshots link
http://pbrd.co/195spx0
http://pbrd.co/195sOiX