This project is not covered by Drupal’s security advisory policy.

Computed relationships allow you to define relationships between different content entities. The JSON:API module is supported.

This is achieved by means of computed fields that are defined at entity level, leaving a later configuration to define in which bundles of the selected entity they should be shown.

Imagine the use case where you need to attach X number of entities when any node of the same content type is requested. You would need to set an entity_reference field with a default value so that whenever a content is created, those contents are attached. With Computed relationships you only need to specify the dependency between entities, the fields will be created automatically.

The configuration of computed fields for JSON:API through the jsonapi_extras module is done automatically if the configuration exists previously.

Once the module is activated, you only need to start defining the relationships to be represented together with the entity.

Supporting organizations: 

Project information

Releases