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

Is there anyway of making collection2 work with meteor-offline-data? #26

Closed
Lepozepo opened this issue Nov 26, 2013 · 4 comments
Closed

Comments

@Lepozepo
Copy link

I tried this in coffeescript client side:

@OfflineProducts = new Offline.Collection "products"
@Products = new Meteor.Collection2 @OfflineProducts,
    smart:true
    schema:
        name:
            type:String

Server side I just did this

@Products = new Meteor.Collection2 "products",
    smart:true
    schema:
        name:
            type:String
@aldeed
Copy link
Collaborator

aldeed commented Nov 26, 2013

I haven't had a request for this before, but it should work. You should remove smart: true but otherwise you are doing it correctly, except I will need to make a small tweak to allow the first constructor argument to be an Offline.Collection instance.

@Lepozepo
Copy link
Author

Sweet, that would be pretty cool to add, it's going to boost the speed of my app a whole lot I think, lol.

@aldeed
Copy link
Collaborator

aldeed commented Nov 26, 2013

I just released a new version that should at least get you further, although there still could be client errors due to the lack of allow/deny support on offline collections. I don't have time to do testing at the moment. If you encounter any errors getting it to work, let me know what they are. Thanks.

@aldeed aldeed closed this as completed Nov 26, 2013
@Lepozepo
Copy link
Author

Thank you! I will!

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