As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
Any updates on this because it's not working.. i'm currently using the username property to get the user, but this is not ok because they are not unique
M
Michael
said
over 9 years ago
The issue is that auto-generated ids are not strings, but rather BSON objects. You need to wrap your query in the collectionAccess.objectID method:
Jonas
modules.collectionAccess.collection('user').findOne
(
{ '_id' : 'xxx' },//request.body.userId
function(err, user)
{
if(user) ...
err is empty, user always return null?
But if i do findOne with empty query {} then it finds the user (only have 1 user) and the _id matches the user id i search for..
Please help.
Thanks in advance.