Search code examples
angularjsnode.jsmeteorngresource

MongoDB returns array of "m" objects?


I have setup backend with NodeJS and MongoDB. In frontend, I am using AngularJS and ngResource. When I run this block of code:

$scope.users = User.query(function() {
    console.log($scope.users);
});

it returns this:

enter image description here

What those 'm' letters mean? All of those are objects including the right data, so it works, I was just thinking what does this mean.


Solution

  • It's the name of the constructor that created the object. You can also see this below those values with Promise and Array.