customize generated field name for array relationships?
Thanks for all your work on beta 8, rename column is incredibly useful!
However, I am still facing some edge cases. For example, I have two schema: listing and listing snapshot, listing have many snapshots , hence I add an array relation on listing. Is there anyway to customize generated array relationship column name?


Hi @xiaoyu-tamu, We're planning to support customising generated aggregate field for array relationships soon. :slightly_smiling_face:
I would really like to see this feature implemented. Through custom root fields and columns I have been able to make my gql queries and resulting objects be perfectly aligned with JavaScript/TypeScript object notation standards.
I think this would really improve the feeling of consistency across all queries, as it is (for what I've seen so far), the only name we can't freely update.
We can, for the time being, rename the aggregate field directly in the query, but I think this would be a great feature to add.
Thanks.
I would also very much welcome this feature! This would finally allow fully customizable and consistent naming.
Is there anything currently planned here?
Would also love this feature 👍
Is this relevant ? https://hasura.io/docs/latest/api-reference/syntax-defs/#custom-root-fields
The aggregate object can be renamed using the select_aggregate key.
Is this relevant ? https://hasura.io/docs/latest/api-reference/syntax-defs/#custom-root-fields The aggregate object can be renamed using the
select_aggregatekey.
No. The select_agg is only for root fields.
Damn, was hoping this was possible. Added my +1 above 😄