question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create computed field that returns single row

See original GitHub issue

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 <table-name> but if I only need an object relation, how can I approach that?

Thanks! Darío

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:26
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

16reactions
tirumaraiselvancommented, Apr 28, 2021

I think we should extend support for computed fields which return <table-name> instead of only set of <table-name>. We did this for top-level functions already: https://github.com/hasura/graphql-engine/issues/4299

7reactions
akhilrajvccommented, Mar 10, 2022

Hi, Is there any update on this

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found