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

noSchema does not exist #28

Closed
jameshfisher opened this issue Jul 4, 2010 · 5 comments
Closed

noSchema does not exist #28

jameshfisher opened this issue Jul 4, 2010 · 5 comments

Comments

@jameshfisher
Copy link
Contributor

The intros at http://www.learnboost.com/mongoose/ and http://labs.learnboost.com/mongoose/ reference mongoose.noSchema. It doesn't exist:

node> sys.puts(sys.inspect(mongoose));
{ _config: { log: true }
, _models: {}
, _connections: 
   { 'mongodb://localhost/test': 
      { base: [Circular]
      , uri: [Object]
      , name: 'test'
      , _compiled: {}
      , _collections: {}
      , db: [Object]
      , _events: [Object]
      , _connected: true
      }
   }
, connect: [Function]
, model: [Function]
, _open: [Function]
, _onError: [Function]
, _lookup: [Function]
, set: [Function]
, enable: [Function]
, disable: [Function]
, super_: 
   { emit: [Function]
   , addListener: [Function]
   , removeListener: [Function]
   , removeAllListeners: [Function]
   , listeners: [Function]
   }
, prototype: { constructor: [Circular] }
}

Are those docs out of date?

@cginzel
Copy link
Contributor

cginzel commented Jul 4, 2010

as far as i can tell they are out of date. i ran into the same question as well. i would say only refer to the documentation here in the helpme.md http://github.com/LearnBoost/mongoose#readme

@smtlaissezfaire
Copy link

This is a big one for me. It's preventing me from using mongoose at all.

I'd be willing to offer a patch if someone could give me some direction on the code in question.

@cginzel
Copy link
Contributor

cginzel commented Jul 8, 2010

you can always look at the older code base. the archive at this link still has some of this original code... http://github.com/LearnBoost/mongoose/downloads

@rauchg
Copy link
Contributor

rauchg commented Jul 10, 2010

noSchema being gone doesn't mean mongoose is not schema-free. If you don't need a "model schema", then you can access mongodb-native directly through _collection()

@smtlaissezfaire
Copy link

That seems like a strange, intentionally hidden interface. If it should be used, should it be named collection()?

This issue was closed.
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

4 participants