Add support for baseUrl in ApolloClient instance within GraphQL helper
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).