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
Hi
i have an npm package where i use the getRepository method which is now deprecated so i have to use the dataSource.getRepository method but i've been asked to pass dataSourceOptions which incudes a mandatory field which is type which can be mongodb,mysql,postgres and so on.
I initially hardcoded it as postgres and when i tried to use the decorator in a different code i am getting the error
error: password authentication failed for user "rahul"
i'm new to the data source migration aspect and would love to know how i can pass the dataSourceOptions from my codebase to my npm package
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi
i have an npm package where i use the getRepository method which is now deprecated so i have to use the dataSource.getRepository method but i've been asked to pass dataSourceOptions which incudes a mandatory field which is type which can be mongodb,mysql,postgres and so on.
I initially hardcoded it as postgres and when i tried to use the decorator in a different code i am getting the error
error: password authentication failed for user "rahul"
i'm new to the data source migration aspect and would love to know how i can pass the dataSourceOptions from my codebase to my npm package
Beta Was this translation helpful? Give feedback.
All reactions