Within my MongoDB database, I have a collection called "post." My goal is to extract all post IDs that are not disabled from this collection. To achieve this, I utilized Jagi Astronomy, a Meteor JS package, to create the schema. However, when I implemented the following code:
let post=Post.findOne({'disabled':false});
console.log(post._id);
The output only displayed the ID of one post, rather than all.
Subsequently, when I tried:
let post=Post.find({'disabled':false});
console.log(post._id)
The result was undefined. Any assistance would be greatly appreciated!