問題タブ [nestjs-config]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
axios - Nestjs で外部 API からの観測可能なデータを使用するには?
axiosを使用してnestjsの外部APIから使用しようとしています。
そして、私のサービスクラスは次のようになります。
ただし、値「infoPrestacion」を console.log に記録すると、次の結果になります。
まだ解決されていないため、2番目には到達しません。結果が解決されるまで結果を待つことは可能ですか (HttpModule の構成がありません)。戻り値は実際にはオブジェクト自体「infoPrestacion」を取得しますが、値を操作してそのオブジェクトを返さないようにする必要があります。