Insert into collection client side only

I’d like to integrate my Meteor client with a different backend.

There’s a lot of code on the client and I’d prefer not to have to completely rewrite it. The client code makes use of multiple collections that all work together.

I know I can create a client side collection doing Mongo.collection(null) on the client, but this would create a whole new collection. Really what I’d like to do is to be able to get data from some REST endpoint, and insert it into an already existing collection. The only problem is that if I do Posts.insert it will also try and insert on the server.

Is there a way around this?