Skip to main content
You may want to create a relationship between 2 Collections, but you don’t have a foreign key that is ready to use to connect them. To solve that use case, you should use both computed fields and relationships. This is done with the following steps:
  1. Create a new field containing a foreign key
  2. Make the field filterable for the In operator (required, see Under the hood)
  3. Create a relationship using it
We have 2 Collections: Customers and Messages, linked together by a one-to-many relationship. We want to create a ManyToOne relationship with the last message sent by a given customer.

Connecting collections without a shared identifier

You have 2 Collections both containing users: one from your database, one from your CRM. There is no common id between them, however both have firstName, lastName, and birthDate fields, which taken together are unique enough.