hasura / hasura/graphql-engine

Create computed field that returns single row

Open
#6,562 12 comments 37 reactions 0 assignees View on GitHub
a/data/postgres c/server
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

Hi,
How're you?

Have you considered allowing relations through computed fields?

I'd like to skip making a view if possible to avoid the extra maintenance step.
I know that an alternative is to use a computed field to return a `setof ` but if I only need an object relation, how can I approach that?

Thanks!
Darío

Contributor guide

Open the contributing guide

Research direction

The issue does not name any files, tests, or entry points. First clarify the desired computed-field relation behavior and how a single returned row should be represented, then locate the relevant GraphQL and PostgreSQL integration area and define tests that distinguish it from a setof result or a view.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, postgresql
Domain
api, database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.