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
Hello, I'm working on a Node.js project having a main-service(A central component where various remote microservices which are exposed with respective "port/graphql" are stitched together to create a unified API endpoint. It acts as a gateway or aggregator, allowing clients to access multiple functionalities provided by different microservices through a single entry point.).
Now, I want to upgrade all the npm packages to latest versions. Currently in the main service I am using below packages and versions and moving to latest versions
From TO
graphql-tools V4.0.5 V9.0.0
apollo-server-express V2.7.2 @apollo/server V4.8.0
express V4.17.1 V4.18.2
graphql V14.4.2 V16.7.1
I'm able to stitch the schema of remote schemas using old packages and now i'm currently able to stitch and unable to resolve the API's using new versions.
I noticed that the introspectSchema and makeRemoteExecutableSchema functions are now deprecated.
I tried schema stitching using introspectionSchema with old version of packages and then again with new versions of packages:-
With latest versions and new code i'm able to stitch schemas and able to receive introspectionQuery. But i receive 'null' when calling the APIs stitched in my main-service.
Could you please guide me on how to update my code to work with the latest versions of graphql-tools and apollo-server? Specifically, I need assistance with the replacement for introspectSchema and makeRemoteExecutableSchema, and any other changes necessary to successfully stitch together the remote schemas.
Thank you in advance for your help in updating my schema stitching process with the latest graphql-tools and apollo-server versions!"
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
-
Hello, I'm working on a Node.js project having a main-service(A central component where various remote microservices which are exposed with respective "port/graphql" are stitched together to create a unified API endpoint. It acts as a gateway or aggregator, allowing clients to access multiple functionalities provided by different microservices through a single entry point.).
Now, I want to upgrade all the npm packages to latest versions. Currently in the main service I am using below packages and versions and moving to latest versions
From TO
graphql-tools V4.0.5 V9.0.0
apollo-server-express V2.7.2 @apollo/server V4.8.0
express V4.17.1 V4.18.2
graphql V14.4.2 V16.7.1
I'm able to stitch the schema of remote schemas using old packages and now i'm currently able to stitch and unable to resolve the API's using new versions.
I noticed that the
introspectSchema
andmakeRemoteExecutableSchema
functions are now deprecated.I tried schema stitching using introspectionSchema with old version of packages and then again with new versions of packages:-
Old code:-
New Code:-
With latest versions and new code i'm able to stitch schemas and able to receive introspectionQuery. But i receive 'null' when calling the APIs stitched in my main-service.
Could you please guide me on how to update my code to work with the latest versions of graphql-tools and apollo-server? Specifically, I need assistance with the replacement for
introspectSchema
andmakeRemoteExecutableSchema
, and any other changes necessary to successfully stitch together the remote schemas.Thank you in advance for your help in updating my schema stitching process with the latest graphql-tools and apollo-server versions!"
Beta Was this translation helpful? Give feedback.
All reactions