var users = db.users.find({});
User has: _id, name, age.
I am trying to print the users so i can see their data, but when i console.log(users) it prints:
Query {
_mongooseOptions: {},
_transforms: [],
_hooks: Kareem { _pres: Map {}, _posts: Map {} },
_executionCount: 0,
mongooseCollection: ...
...
Is is possible any way so i can console something like this: console.log(users[0]).['name'] so i can see the name of the first element in the array of users?
I tried to JSON.parse(users) but it raises an error.