Hi,
I’trying to get all user from a car in my app (in order to be able to delete them when I delete the car). So I’m trying to get all the user linked to the car like this :
$scope.getUsersByCar = $meteor.collection(function(carId) {
return Users.find({carid: car_id});
});
and then i call it like this :
getUsersByCar(theCarId)
but doesn’t work… I have this error : v2.getUsersByCar is not a function
Thanks in advance for any help.