These are chat archives for Automattic/mongoose

14th
Dec 2017
panigrah
@panigrah
Dec 14 2017 14:23

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
@nparsons08
Dec 14 2017 18:20
Having issues with pagination. Returns one less than one I want. Anyone have this issue?
.limit (2) returns 1 instead of 2.
Javid Jamae
@javidjamae
Dec 14 2017 19:45
I'm looking for some advice on doing a conditional populate. I've written up the problem here: https://stackoverflow.com/questions/47804732/conditionally-populating-a-path-in-a-mongo-query