How to expose collections to client console


#1

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?


#2

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


#3

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;