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

Allow custom name for tracked functions

Open jflambert opened this issue 4 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

@dameleney this is something we can definitely add to our backlog.

vijayprasanna13 avatar Apr 18 '23 13:04 vijayprasanna13

This reminds me there's a bug with the API call. It doesn't rename the "update_many" mutation.

jflambert avatar Apr 18 '23 15: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.

Still pending over 1 year later?

jflambert avatar Jul 06 '23 03:07 jflambert

@jflambert We've merged this to main (https://github.com/hasura/graphql-engine/commit/319e9855f986c43aa6c8b71e7616710c321aeff8) and it should be available in the next release.

vijayprasanna13 avatar Jul 12 '23 13:07 vijayprasanna13

nice @vijayprasanna13 are we talking 2.30?

jflambert avatar Jul 15 '23 02:07 jflambert

Yep. You can try this feature out starting from v2.30.0-beta.1, which should be available now.

vijayprasanna13 avatar Jul 17 '23 11:07 vijayprasanna13