Title: Meteorjs collection.find won't return specific data from database
Tags: javascript;mongodb;meteor
Question: as the title say when i pull collection.find works fine if I write normally
Template.body.helpers({
tasks: function(){
return Tasks.find({})
but if I do this
Template.body.helpers({
tasks: function(){
return Tasks.find({}, {fields:{completed:"no"}})
It won't pull from the database anymore


Here is another answer: Your field specification needs to evaluate to true/false:
return Tasks.find({}, { fields: { completed: 0 }})

Here is another answer: You can use findOne or find as required:
return Tasks.find({}, {fields: {'completed': "no"}});
return Tasks.findOne({'completed':"no"});
Your syntax looks good. Check the documentation
Make sure your filter is valid.
Comment for this answer: Meteor.publish("tasks", function () {
return Tasks.find({});
});    This is my filter. i tried but for some reason it won't work

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 2, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2015:00:12/28/15', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<javascript><mongodb><meteor>', 'Title': "Meteorjs collection.find won't return specific data from database", 'ViewCount': 28, 'id': 34494389, 'user_AboutMe': None, 'user_AccountId': 6206589.0, 'user_DisplayName': 'OunknownO', 'user_Reputation': 1156.0, 'user_Views': 128.0, 'user_id': 4834385.0}}