[07:30:09] <ThomasCrown> I have a question about Mongoose. When defining an array in a model, what should the format be if there are strings in that array?
[11:31:39] <daniel1302> This is Pritunl DB. How Can I debug what is read?
[13:50:02] <bluezone> daniel1302: maybe the log file?
[16:06:31] <ironpig> is there a notation that would allow me to get the nth item for the base of a document ? <--- I'm not sure base it the correct word. ie, the _id value would be 0 and the next value would be 1 ?
[16:12:15] <bluezone> ironpig: think there is a .skip()
[16:12:27] <bluezone> .skip(100) skips the first 100 documents
[16:12:36] <bluezone> but there's probably a better way to do what you need
[16:34:20] <sperry> How can I query / count all the 'codes' based on this schema? https://bpaste.net/show/Bn2p
[16:34:47] <sperry> assume the collection is just called 'batches'
[17:20:16] <bluezone> sperry: just fetch the array and do array.length
[17:21:00] <sperry> bluezone: i want an aggregate of all batches if that makes a difference
[17:21:12] <sperry> so in that case, it would return 4