Advanced usage

circle-check

When an RPC agent needs to reference collections from another RPC agent, you can import the collection by defining an RPC datasource that references the RPC agent. The collections are now available for any type of customization.

Then use mark_collections_as_rpc: true to indicate that the imported collections are provisioned by another agent.

Example architecture overview

RPC Architecture

Fine-grained control with mark_collections_as_rpc

For more control over which collections to mark, use mark_collections_as_rpc manually:

circle-info

After adding a remote RPC datasource, you can use all standard customization methods (import_field, add_field, add_action, etc.) on its collections before marking them as RPC.

Supported relation types

Relation type
Use case

add_many_to_one_relation

Local record belongs to one remote record

add_one_to_many_relation

Remote record has many local records

add_one_to_one_relation

One-to-one mapping between local and remote

add_many_to_many_relation

Many-to-many through a junction table

How ReconciliateRpc works

circle-exclamation

The ReconciliateRpc plugin must be added in the main agent:

Last updated