How can I make this query mongoose ??

14 views
Skip to first unread message

Angel Rodriguez

unread,
Oct 3, 2014, 3:11:14 PM10/3/14
to mongoo...@googlegroups.com

I am creating a search engine with node, express, mongo, mongoose, etc. Now, how  can I know when the query finds a word in the database ?? The query can inform me what keyword was found ???

Example: ... query.and ([{color: 'green'}, {color: 'gray'}, {color: 'blue'}]) ....

The query returns the matches found in the database, but I need to know what colors or words found in the query, if possible, at the time that this query is running.

Thanks !!!

Reply all
Reply to author
Forward
0 new messages