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
The mergeParams feature exists at the route-level when declared directly in the API Gateway. However, Auto-alias does not have this feature at the route-level.
At present, auto-alias only supports fullPath, basePath, path and method.
Aliases should have consistent features, whether they are declared in the gateway service or as auto-aliases.
This inconsistency directly affects the ecosystem of modules and plugins, both official and third-party. They are hindered in their ability to set route-level options in services.
For instance, moleculer-db (an official module) has already indicated its lack of support for a global mergeParams: false setting in the API Gateway (Issue #83). Should developers really be mandated to use mergeParams: true when working with moleculer-db?
To cite another case, I'm developing a third-party module named moleculer-mongobubble. It's a mixin that generates actions with auto-aliases, similar to moleculer-db. Due to this issue, it cannot determine if developers have set the mergeParams flag to true or false. This forces me to add extra conditionals to discern how parameters were passed to each action.
The text was updated successfully, but these errors were encountered:
ggondim
changed the title
Route-level mergeParams doesn't exists for auto aliases
Route-level mergeParams doesn't exist for auto aliases
Sep 5, 2023
The
mergeParams
feature exists at the route-level when declared directly in the API Gateway. However, Auto-alias does not have this feature at the route-level.At present, auto-alias only supports
fullPath
,basePath
,path
andmethod
.This inconsistency directly affects the ecosystem of modules and plugins, both official and third-party. They are hindered in their ability to set route-level options in services.
For instance, moleculer-db (an official module) has already indicated its lack of support for a global
mergeParams: false
setting in the API Gateway (Issue #83). Should developers really be mandated to usemergeParams: true
when working with moleculer-db?To cite another case, I'm developing a third-party module named moleculer-mongobubble. It's a mixin that generates actions with auto-aliases, similar to moleculer-db. Due to this issue, it cannot determine if developers have set the
mergeParams
flag totrue
orfalse
. This forces me to add extra conditionals to discern how parameters were passed to each action.The text was updated successfully, but these errors were encountered: