Jis0
Jis0

Reputation: 91

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.

Upvotes: 0

Views: 30

Answers (1)

mscdex
mscdex

Reputation: 106736

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

Upvotes: 1

Related Questions