Skip to content

Commit

Permalink
ref(useSubscriptionGraphql.ts): remove fetchGraphql util
Browse files Browse the repository at this point in the history
  • Loading branch information
hassnian committed Oct 28, 2024
1 parent 4c3850b commit 84051db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
11 changes: 10 additions & 1 deletion composables/useSubscriptionGraphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,16 @@ export default function ({

async function pollData() {
try {
const response = await fetchGraphql(query, { client })
const response = await $fetch(httpUrl, {
method: 'POST',
body: {
query: `
query {
${query}
}
`,
},
})

const newResult = response.data as any

Expand Down
14 changes: 0 additions & 14 deletions utils/graphql.ts

This file was deleted.

0 comments on commit 84051db

Please sign in to comment.