jsonapi_orm package¶
Submodules¶
jsonapi_orm.jsonapi_orm module¶
Main module.
-
jsonapi_orm.jsonapi_orm.
mapped_included
(inc: dict) → dict[source]¶ Makes included more easily searchable by creating a dict that has (type,id) pair as key.
Also, returned value for the key can be used for relationships node.
ie. {
- (‘people’, ‘12’): {
‘id’: ‘12, ‘type’: ‘people’, ‘attributes’: {
‘name’: ‘John’}
}, (‘tag’, ‘11’): {
…}
}
Module contents¶
Top-level package for JSON:API ORM.