Drop-in serializer support for Express/Connect Node apps.
Integrate blackburn with your Mongoose ORM.
Given a Mongoose Document, return the type.
a Mongoose Document
Given a Mongoose Document, return it's id.
id of the supplied record
Fetch a simple attribute from the record.
Given a record, the relationship name, and the relationship config, return the data for a given record, which could be the ids, an id, the records, or a specific record.
This method takes advantage of the fact that the Document.populated() method either returns the id(s) of the populated record(s), or undefined.
the serialization strategy, either 'ids', 'id', 'records', or 'records'
the type of the related records
related data
, options