I am trying to search data in mongodb with nodejs. This is my query
collection.find({ age: { '$gt': 20 } });
its working fine in robomongo but giving me this response in my application
Readable {
pool: null,
server: null,
disconnectHandler:
{ s: { storedOps: [], storeOptions: [Object], topology: [Object] },
length: [Getter] },
bson: {},
ns: 'versioncontrol.Branch/contacts',
cmd:
{ find: 'versioncontrol.Branch/contacts',
limit: 0,
skip: 0,
query: { age: [Object] },
slaveOk: true,
readPreference: { preference: 'primary', tags: undefined, options: [Object] } }
Now i don't know how to get my data out of it.