hasura / hasura/graphql-engine

Incorrect realtionships between tables in different schemas

Open
#7,904 0 comments 0 reactions 0 assignees View on GitHub
k/bug
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Version Information

Server Version:
CLI Version (for CLI related issue):
Current server version: v2.0.1
Console asset version: 1634624697972

### Environment
Docker container

### What is the expected behaviour?
I've created tables in different schemas in one Postgres instance. Then I've added foreign key relationship between them ("table_2_id" column in schema1.table_1 to "id" in schema2.table_2). I expected to see both-side relationship objects in Hasura.

### What is the current behaviour?

Hasura sees only one relationship (from table_1 to table_2) un current structure.

![image](https://user-images.githubusercontent.com/69573052/145522219-09c854d7-231e-49d4-917f-95310fc87f85.png)

table_2 in API explorer doesn't have object 'table_1' with it's columns.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.