-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GraphQL Support #399
Comments
Hi @mrnasil here 's the way I create a basic graphql client in my export const $graphqlClient = async (query: string, variables?: object) => {
const { data, errors } = await $fetch( ~SERVER_ENDPOINT~, {
method: 'POST',
headers: {
"Content-Type": "application/json",
"x-secret": ~SECRET-TOKEN~
},
body: {
query,
variables
}
})
return { data, errors }
} |
"Thank you very much for your response. I also use it in the same way. However, I believe it would be more appropriate for it to be included within ofetch as an optional feature. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the feature
I am wondering if GraphQL support can be added without going into too much detail.
The text was updated successfully, but these errors were encountered: