Merge branch 'development' of github.com:defuj/eis into development

This commit is contained in:
bagus
2024-05-03 14:56:22 +07:00
3 changed files with 15 additions and 17 deletions

View File

@ -20,7 +20,6 @@ const instance = axios.create({
})
export const getQueryString = (query: DocumentNode) => query.loc?.source.body!
export const requestGraphQl = async (query: DocumentNode, data: any) => {
return await instance.post('', {
query: getQueryString(query),
@ -31,7 +30,7 @@ export const requestGraphQl = async (query: DocumentNode, data: any) => {
export const apolloClient = () => {
const httpLink = createHttpLink({
uri: import.meta.env.VITE_APP_GRAPHQL_ENDPOINT,
credentials: 'include' // Include credentials for cross-origin requests
credentials: 'include'
})
const apolloClient = new ApolloClient({