hasura / hasura/graphql-engine

Support constant values in relationships

Open
#9,442 1 comment 2 reactions 0 assignees View on GitHub
k/enhancement t/native-dbs
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Is your proposal related to a problem?
Trying to create relationships to polymorphic tables is really frustrating, the only good solution is to create a view for every polymorphic table

### Describe the solution you'd like
Support an option to set a constant value when creating a relationship.
As for the type of the value, best if it would be inferred from the type of the field it is compared to, but even selecting the field type in the UI is great.

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by tracing where relationships are created in the UI and how the compared field type is represented; done would mean a relationship can use a configured constant value, with its type inferred or selectable as described.

Written by the indexing model from the issue text.

Assessment

Domain
backend-api-design, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.