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.
how to query nearsphear from prefetch collection hook
A
Ahmed Medhat (elnaqah)
started a topic
over 8 years ago
i have a collection store as follow
{ _id,_geoloc,name}
and i use this collection access:
collectionAccess.collection('store').find({ _geoloc: { "$nearSphere" : [30.11045788301719,31.34927760084216], "$maxDistance":1}},function(error,stores){
if(error){
logger.error(error.message);
}else
{
logger.info(stores.length);
response.body=stores;
response.complete(200);
}
});
but it doesn't return the right result for maxdistance how should it be done
Ahmed Medhat (elnaqah)