I work on meteor with mongodb. I am trying to get a collection from database. I can insert data without any problem in this collection from meteor, but when I try to find, it doesn't works. My collection is 'first'.
Server side:
Meteor.publish('first', function(){
return first.find();
});
Client side:
var datacollab = first.find({"Mois":"Mars"});
console.log("collab: " + datacollab);
When I make this command line in mongo shell, it works fine. I already try to change my request with findOne, or put .fetch at the end.
Meteor.subscribe('first');- Benjamin Lucidarme