GithubHelp home page GithubHelp logo

Comments (5)

scottburch avatar scottburch commented on May 31, 2024

A workaround seems to be to pass myCollection.collection to autoform helpers.

from ground-db.

raix avatar raix commented on May 31, 2024

Thanks @scottburch, yep changed the the way it works - I'll see if I can make it work as an instance of Meteor/Mongo.collection.

from ground-db.

raix avatar raix commented on May 31, 2024

Btw. I think you could still do:

  var foo = new Mongo.Collection('foo');
  var fooGrounded = new GroundDB(foo);

  // hand in foo as normal

Let me know if this works

from ground-db.

scottburch avatar scottburch commented on May 31, 2024

I'm pretty sure it would. I have a factory that creates collections
because I do a lot of other things to them so I would not do this exactly.

However, I think my solution of passing fooGrounded.collection was
effectively the same solution that you came up with. Should I not do
that. I figured that since it did not start with '_' that you intended
.collection to be part of the api.

Am I wrong?

On Sun, Sep 21, 2014 at 8:00 AM, Morten N.O. Nørgaard Henriksen <
[email protected]> wrote:

Btw. I think you could still do:

var foo = new Mongo.Collection('foo');
var fooGrounded = new GroundDB(foo);

// hand in foo as normal

Let me know if this works


Reply to this email directly or view it on GitHub
#47 (comment).

from ground-db.

raix avatar raix commented on May 31, 2024

Your right, sorry, its the same,
Hmm, good point, I'll do some work on making things private

from ground-db.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.