to apply full text search in a given document and match a particular array in a member field

sandeep Singh Source

i have a room schema(in mongoose) in which members id are stored in array and i want to apply full text search to find room names in which a given members are stored (using node.js and express).

eg:

var room = new Schema({
 name: {
 type: String,
 required: true
 },
 members: []``
});

I want to apply full text search to find a room name in which a particular member (provide through id) is stored.

node.jsmongodbexpressmongoose

Answers

comments powered by Disqus