Feature: Automatically call translateAlias for queries. #7511
Labels
enhancement
This issue is a user-facing general improvement that doesn't fix a bug or add a new feature
Milestone
FEATURE
I plan on implementing this at some point, but would like to propose my method for doing this for some feedback.
I propose an option when defining the schema to indicate if the schema has aliased keys. If so, translateAliases can be called automatically when doing queries on the model.
If not, then the translateAliases call can be skipped entirely, so it avoids traversing the schema if the user is not using aliases.
The text was updated successfully, but these errors were encountered: