How to expose collections to client console

When we were using the old Meteor project format (pre-import-era), all the collections were automagically exposed on the client. Now, I’d like to, for easier debugging, expose these collections to the client so I can poke at them while insecure and autopublish are still in the project.

How can I make these collections load into the global namespace?

Meteor dev tools on chrome has it all,although you could easily access a collection with the ordinary console

1 Like

Meteor dev tools is fantastic for that. Otherwise, if you want a quick solution for one collection I usually just attach it to the window object after I import it like:

import { Messages } from '../your/api';
window.Messages = Messages;