graphql-engine icon indicating copy to clipboard operation
graphql-engine copied to clipboard

Allow custom name for tracked functions

Open jflambert opened this issue 2 years ago • 3 comments

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.

jflambert avatar Oct 25 '21 20:10 jflambert

Am I crazy or is it still not possible to provide custom names for functions?

@0x777 @tirumaraiselvan

jflambert avatar Apr 11 '22 11:04 jflambert

@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 avatar Apr 11 '22 13:04 tirumaraiselvan

@tirumaraiselvan @rikinsk is there another issue for console support? or is this the one?

jflambert avatar Oct 18 '22 12:10 jflambert