Create computed field that returns single row
See original GitHub issueHi, 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 <table-name> but if I only need an object relation, how can I approach that?
Thanks! Darío
Issue Analytics
- State:
- Created 3 years ago
- Reactions:26
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Specify Computed Columns in a Table - SQL Server
Right-click Columns and select New Column. Enter the column name and accept the default data type (nchar(10)).
Read more >Calculated Column for multiple rows based on single row
Basically I want to get all the scores for each user, but I want a calculated column based on only rows with a...
Read more >An overview of computed columns in SQL Server - SQLShack
This article gives us an overview of the Computed column in SQL Server. ... Click OK, and it creates the table with the...
Read more >Postgres: Computed fields | Hasura GraphQL Docs
Computed fields whose associated SQL function returns SETOF <table-name> are table computed fields. The return table must be tracked to define such a...
Read more >Calculated Fields | Visualize and present data - Mode Support
A field is a column in a database table. A calculated field is a field that uses existing database fields and applies additional...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I think we should extend support for computed fields which return
<table-name>instead of onlyset of <table-name>. We did this for top-level functions already: https://github.com/hasura/graphql-engine/issues/4299Hi, Is there any update on this