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
Post a Comment