Skip to content

Commit 6545984

Browse files
committed
feat: add manual relationship in hasura
1 parent f59727c commit 6545984

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

scripts/hasura-config/src/index.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,26 @@ export const virtualArrayRelationships: RelationshipConfig<Tables>[] = [
8787
},
8888
},
8989
},
90+
{
91+
name: "projects",
92+
table: {
93+
name: "applications",
94+
schema: "public",
95+
},
96+
source: "default",
97+
using: {
98+
manual_configuration: {
99+
remote_table: {
100+
name: "projects",
101+
schema: "public",
102+
},
103+
source: "default",
104+
column_mapping: {
105+
project_id: "id",
106+
},
107+
},
108+
},
109+
},
90110
];
91111

92112
async function configureHasura(): Promise<void> {

0 commit comments

Comments
 (0)