How i can get data from mongodb collection

I want to create a database using mongodb. I made two collections Lists and Todos
in Todos existing collections of data with the name “listId”, which is taken from _id collections Lists to listId in Todos
in Lists existing collections of data with the name "name"
I want to get the name of data, how to bring it up?
Lists.find({_id: listId}).fetch();

and how to show name?

I’m guessing you only see the id’s of the listId on your todo list? right?

Try this on your helpers
Lists.find({},{fields: {name: 1}};

1 Like

thank you so much :smile: