50e21a89a0
This suggests possibly related issues when the user types a title. This uses GraphQL to allow the frontend to request the exact data that is requires. We also get free caching through the Vue Apollo plugin. With this we can include the ability to import .graphql files in JS and Vue files. Also we now have the Vue test utils library to make testing Vue components easier. Closes #22071
9 lines
216 B
JavaScript
9 lines
216 B
JavaScript
import ApolloClient from 'apollo-boost';
|
|
import csrf from '~/lib/utils/csrf';
|
|
|
|
export default new ApolloClient({
|
|
uri: `${gon.relative_url_root}/api/graphql`,
|
|
headers: {
|
|
[csrf.headerKey]: csrf.token,
|
|
},
|
|
});
|