Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make collection2 play nicer with modularized style #335

Closed
ndarilek opened this issue Jun 17, 2016 · 1 comment
Closed

Make collection2 play nicer with modularized style #335

ndarilek opened this issue Jun 17, 2016 · 1 comment

Comments

@ndarilek
Copy link

I'm currently encountering vsivsi/meteor-file-collection#125. I don't know specifically what is causing it, but the console logs make it look like there's some clash between FileCollection and the collection2 prototype.

I'd like to use collection2, but not automatically and not everywhere. Any chance we might get a way to:

import {Collection2} from "meteor/aldeed:collection2"
const Documents = new Collection2(...)

It doesn't currently appear possible to opt out of the monkeypatch, but this may be causing issues for other packages. I have to import mongo now anyway, so why not let me selectively opt into collection2 use when I want it?

Thanks.

@aldeed
Copy link
Collaborator

aldeed commented Feb 2, 2018

Closing old issues. Please comment if this is still an issue and should be reopened.

@aldeed aldeed closed this as completed Feb 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants