behaviour of prefix and suffix in SourceCustomization
with naming convention
#8544
Labels
k/enhancement
New feature or improve an existing feature
Before naming convention was introduced, adding prefix and suffix was pretty straightforward.
For example, say I have a table called
foo
then HGE generated field names such asfoo
,foo_by_pk
, etc. Now if I want to add prefix while retaining the snakecase of the fields, I would add prefixmy_prefix_
and suffix_my_suffix
and thus the new field names will bemy_prefix_foo_my_suffix
,my_prefix_foo_by_pk_my_suffix
, etc. (Please note that this is the case withhasura-default
naming convention)With the introduction of
graphql-default
naming convention, there is no way to add prefix and still retain the case of the field name. For example, if I have a table namedfoo
, the field names generated arefoo
,fooByPk
, etc. Now if I want to add some prefix, saymyPrefix
, the new fields will bemyPrefixfoo
,myPrefixfooByPk
, etc.This raises a few questions:
myPrefixFoo
,myPrefixFooByPk
, etc. in the above example._
automatically when adding prefix and suffix forhasura-default
?PS: There is a really dirty workaround to fix the prefixing issue by renaming the table to
oo
and adding prefixmyPrefixF
, but I don't think anyone should do this.The text was updated successfully, but these errors were encountered: