Note that there are some explanatory texts on larger screens.

plurals
  1. USJavo
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COSame here. I have found that if you define your subdocument as a Schema, something like var subject = new S({ name: String , properties: [SubSchema] }); Then it works fine... Doesn't seem too correct for me, as I was defining it as an object, because just need ONE instance (not a collection) and ended having to use an array of Schemas since Schemas can only be nested in Mongoose if you embed them in an array... did you find a more proper solution for this?
      singulars
    2. COOk, didn't remember that, if you install modules globally, then when requiring them, you have to require them using require('{prefix}/module') As explained here: http://blog.nodejs.org/2011/03/23/npm-1-0-global-vs-local-installation/ In my case, as I use nvm, the module was being installed at .nvm/$VERSION/lib/node_modules so adding that route to the require in Node REPL just worked. Hope it helps!!
      singulars
    3. COIf you want to just require('something'); it is better to install it locally, otherwise, you have to require('{PREFIX}something'), where prefix is the path to where yo have installed it globally. Check out this [blog post](http://blog.nodejs.org/2011/03/23/npm-1-0-global-vs-local-installation/) , and, as it says, generally the rule of thumb is to install things locally if you are going to use them in your app, and globally if you are going to use them from the command line.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload