These are chat archives for Automattic/mongoose

Dec 2017
Dec 14 2017 14:23 UTC

Is it possible to and how can I use the autogenerated id "_id" as a foreignkey in an aggregate pipeline for join?

I want to join two collections using the aggregate pipeline - but am using the "_id" field as the foreign key.

Nick Parsons
Dec 14 2017 18:20 UTC
Having issues with pagination. Returns one less than one I want. Anyone have this issue?
.limit (2) returns 1 instead of 2.
Javid Jamae
Dec 14 2017 19:45 UTC
I'm looking for some advice on doing a conditional populate. I've written up the problem here: