Skip to content

Add support for baseUrl in ApolloClient instance within GraphQL helper

Kushal Pandya requested to merge kp-add-base-url-support-graphql into master

What does this MR do?

Currently when app/assets/javascripts/lib/graphql.js is used with VueApollo, network requests made by Vue automatically point to current URL but when createClient method is used directly and .query is called on the instance, it directly makes request to http://api/graphql (instead of including host name in the URL).

Merge request reports