javascript - Meteor JS: How to display only data that have certain words in Mongo? -


for example have

posts = new mongo.collection('posts'); 

and insert in posts data this

posts.insert({    tags: ["444","555"] });   posts.insert({    tags: ["111","222"] });   posts.insert({    tags: ["111","333"] }); 

now want show posts have in tags numbers 111 (string).

question: how can ?

post.find({   tags: "111" }); 

i believe should fine.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -