Hasura is an open-source engine that auto-generates a GraphQL backend on top of a Postgres database. Paired with Sequin, you can easily query across all your data in one place.
public
schema and your Sequin schema.
_sync
.deal_associations
), select the table you want to join to, and then select the columns you want to join on. Then click the Create Relationship button:
account
table to the opportunity
table, you would map the account_id
column in the opportunity
table to the id
column in the account
table.
account
table you’ll create an object relationship between account.id
and opportunity.account_id
.opportunity
table you’ll create an array relationship between opportunity opportunity.account_id
and account.id
.associations
join table. For example, if you want to join the deal
table to the contact
table, you’ll sync a join table called associations_contact_deal
that contains the relationship between deal_id
and contact_id
. Then, you would map the deal_id
column in the associations_contact_deal
join table to the id
column in the deal
table and the contact_id
column in the associations_contact_deal
table to the id
column in the contact
table.
associations_contact_deal
table you’ll create an object relationship between associations_contact_deal.contact_id
and contact.id
. You can call this associations_contact
.contact
table you’ll create an object relationship between associations_contact_deal.contact_id
and contact.id
. You can call this contact_associations
.deal
table:
associations_contact_deal
table you’ll create a object relationship between associations_contact_deal.deal_id
and deal.id
. You can call this associations_deal
.deal
table you’ll create an object relationship between associations_contact_deal.deal_id
and deal.id
. You can call this deal_associations
.deals_and_contacts
that joins your HubSpot deal
table to your contact
table via the associations_contact_deal
join table. The view can contain just the columns you need:
public.users
table with your salesforce.contact
table on the users.id
and contact.user_id
columns. However, the users.id
column is type int4
and the contact.user_id
column is type varchar
. You can create a generated column on the contact
table that casts the user_id
column to int4
in a new column called _user_id
:
users
table and the contact
table using the _user_id
column.