graphql-engine
graphql-engine copied to clipboard
Allow custom name for tracked functions
Is your proposal related to a problem?
Tracked functions cannot be given a custom name. (Hasura 2.0.6 and PostgreSQL 13.4)
Describe the solution you'd like
Tracked functions should have a "Custom GraphQL Root Field" section in the "Modify" panel.
Describe alternatives you've considered
I could rename the source function the way I want it to appear in graphql, but at the cost of rewriting other code.
If the feature is approved, would you be willing to submit a PR?
Sorry no.
Am I crazy or is it still not possible to provide custom names for functions?
@0x777 @tirumaraiselvan
@jflambert This feature is available as API: https://hasura.io/docs/latest/graphql/core/api-reference/metadata-api/custom-functions/#metadata-pg-set-function-customization
The console work is still pending.
@tirumaraiselvan @rikinsk is there another issue for console support? or is this the one?
@dameleney this is something we can definitely add to our backlog.
This reminds me there's a bug with the API call. It doesn't rename the "update_many" mutation.
@jflambert This feature is available as API: https://hasura.io/docs/latest/graphql/core/api-reference/metadata-api/custom-functions/#metadata-pg-set-function-customization
The console work is still pending.
Still pending over 1 year later?
@jflambert We've merged this to main (https://github.com/hasura/graphql-engine/commit/319e9855f986c43aa6c8b71e7616710c321aeff8) and it should be available in the next release.
nice @vijayprasanna13 are we talking 2.30?
Yep. You can try this feature out starting from v2.30.0-beta.1, which should be available now.