-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
[Question]: How to download and use graphql/schema download #813
Comments
Indicates a error response. Can you read the full response? |
Thanks for your help. I managed to get the full response from the server using Here is the response: {
"errors": [
{
"message": "query parse error: Parse error at 1:787\nUnexpected `}[Punctuator]`\nExpected `end of input`\n"
}
]
}
It seems like the server is throwing a parse error. It is telling me that there is an unexpected } character, at the end of the introspection query we are trying to use, can you please help me with it?
Thanks again for your support, I appreciate it. |
Yea, I haven't seen this error, but I'm also not using GraphQL. This library only provides a pre-configured Apollo GraphQL Client, all other questions about usage problems are probably better asked in the Apollo GraphQL issues/discussions. |
Thank you.
Thank you. I have opened an issue there. Will let you know if I get a fix |
@jan-tennert
This looks like an issue in Supabase. I've opened supabase/supabase#31158. In the meantime, you can: execute the introspection query in Apollo Sandbox or Postman |
General info
What is your question?
Hey Hello. I have intergrated apollo graphql to my supabase project using `val supabase = createSupabaseClient(
supabaseUrl = "https://id.supabase.co",
supabaseKey = "apikey"
) {
//...
}`
I want to be able to use the schema from supabase so that I can be able to create queries from it. However I am unable to download the schema. I keep getting this error whenever I try to download
Iam very new to graphql and I don't know what to do from here and I have tried to look to see if I can find any online solution to no avail. Am I using the graphql in the wrong way? Do I need to perform any configuration or tweek any settings in the supabase dashboard? Must I download the schema to perform graphql queries? Iam so confused. Please any help will be greatly appreciated. Also, when I tried to run the endpoint in graphql sandbox, I got the response very well, meaning the endpoint is working correctly.
Here is also how I have configured the graphql in the build.gradle.kts file
`apollo {
service("service") {
packageName.set("src/main/graphql")
introspection {
endpointUrl.set("https://myendpointurl.supabase.co/graphql/v1")
headers.put("apikey", "myApiKey")
schemaFile.set(file("src/main/graphql/com/ngumi/app/schema.graphqls"))
}
}`
Relevant log output (optional)
The text was updated successfully, but these errors were encountered: