How do I display all elements in a collection except the ones that belong to a certain parameter.
To display all the elements, I do;
return Posts.find({});
I want to prevent mongo from displaying objects with a certain username, say “food”. I tried the code below but it failed
return Posts.find({username: ! "food"});
I need some help.