Contrary to the v2 documentation (https://apollo-angular.com/docs/get-started), the URI in graphql.module.ts does not work with a complete URL like const uri = 'http://localhost:8091/graphql' but works with const uri = '/graphql'.
With a complete URL, I get the following error, e. g.:
Error: Cannot read properties of undefined (reading 'message')
at new ApolloError (index.js:29)
at QueryManager.js:611
at both (asyncMap.js:16)
at asyncMap.js:9
at new ZoneAwarePromise (zone.js:1387)
at Object.then (asyncMap.js:9)
at Object.error (asyncMap.js:17)
at notifySubscription (module.js:137)
at onNotify (module.js:176)
at SubscriptionObserver.error (module.js:229)
Describe the bug
Contrary to the
v2
documentation (https://apollo-angular.com/docs/get-started), the URI ingraphql.module.ts
does not work with a complete URL likeconst uri = 'http://localhost:8091/graphql'
but works withconst uri = '/graphql'
.With a complete URL, I get the following error, e. g.:
To Reproduce Steps to reproduce the behavior:
Follow the documentation here https://apollo-angular.com/docs/get-started for version v2
Expected behavior
http://localhost:8091/graphql
) is used in HttpLink (apollo-angular/http).Environment:
Additional context