These are chat archives for Automattic/mongoose

19th
Sep 2017
Namho Kim
@namho-kim
Sep 19 2017 03:58
Hello, I had a quick question with my mongoose code. I'm trying to pull an item from a nested array. I am able to push, but pulling does not seem to work. I've tried a few variations as well:
https://hastebin.com/apehuxogud.js
was wondering if someone could take a quick look.
Paul "Joey" Clark
@joeytwiddle
Sep 19 2017 10:13
Thanks @sgilroy. After reading the docs, I was not confident that the .isSelected() method would return true if I had run a plain .find() with no .select(). But I tested it and it does indeed to what I need. :)