These are chat archives for Automattic/mongoose

13th
Jul 2015
hellboy81
@hellboy81
Jul 13 2015 12:08
I need I also
This message was deleted
Joshua Ball
@joshball
Jul 13 2015 20:12
How do you figure out what the latest stable release is in npm?
I have tried npm install mongoose which brings down 4.0.7 which reports unstable, i tried mongoose@4.0.6 and mongoose@4.0.5, both report unstable.
and apparently 4.0.1 is unstable? Maybe the warnings are coming from a dependencies?
Joshua Ball
@joshball
Jul 13 2015 20:22
it was a dependency from another library. mea culpa
Luke A. Greenleaf
@gishmel
Jul 13 2015 23:11
how do i make my ObjectIds integers? can it be done on a model level otherwise at a collection level?
Luke A. Greenleaf
@gishmel
Jul 13 2015 23:31
or better question i suppose how do i make an arbitrary field the ObjectId of that collection?
Luke A. Greenleaf
@gishmel
Jul 13 2015 23:45
in case anyone else was curious i found the best answer for me personally was to create virtual getter and setter methods associated with the field in question and rename it to id but the getters and setters retain the original name of the field in question