Drop-in serializer support for Express/Connect Node apps.
Adapters let the blackburn talk to your models, regardless of what ORM you are using. They are essentially a small shim / translation layer between your ORM and blackburn.
Given a record, return it's id.
id for the record
Given a record, return it's type.
the type of the record
Given a record and attribute name, return the value of the attribute.
the record to extract the attribute from
the value of the attribute
Return the requested relationship from the supplied record. The returned
object must contain the type
of the related records, and optionally can
include any of the following:
the record to extract the relationship from
the name of the relationship
the serialization config for this relationship
the specific strategy for serialization ('include' or 'id-only')
the relationship descriptor, which should include an id, ids, record, or records property based on the supplied