You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This convention steamrolls the second relation to the gage table, and it removes the clarity provided by the column's original name. Perhaps it could use the column name for inflection rather than the foreign table? At the very least, if more than one FKEY points to the same table, it should skip simplification. Since [relation]_id is a pretty common convention, FKEY columns that match that format could simply strip _id from the column name, producing for my example:
This can be worked around at least by using @forwardMutationName and @reverseMutationName to set the nested names as you wish.
Special casing [relation]_id would be a schema-breaking change for existing users, so it would have to be gated behind a configuration option, or part of a major version bump.
Given the table:
The following input type is generated:
So far, so good. But when I use the
nestedMutationsSimpleFieldNames: true
option, it simplifies to this:This convention steamrolls the second relation to the
gage
table, and it removes the clarity provided by the column's original name. Perhaps it could use the column name for inflection rather than the foreign table? At the very least, if more than oneFKEY
points to the same table, it should skip simplification. Since[relation]_id
is a pretty common convention,FKEY
columns that match that format could simply strip_id
from the column name, producing for my example:The text was updated successfully, but these errors were encountered: