-
|
I am not sure what I am doing wrong here. I get an error when I query my graphql endpoint using the Query widget of the graphql_flutter package. Here is my query - Here is my implementation of the Query widget- Below is the error I see- |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 17 replies
-
|
Try the following as mentioned in the docs https://github.com/zino-hofmann/graphql-flutter/tree/main/packages/graphql const String findContacts = r''' {
query ($contacts:[String]){
findContacts(contacts:\$contacts) {
status
error
users {
id
userPhoneNumber
userDisplayName
}
}
}
}
'''; |
Beta Was this translation helpful? Give feedback.
-
|
This is an exception; you should print the exception. I do not use vscode no I do not know what it is mean, but this is an exception |
Beta Was this translation helpful? Give feedback.
-
|
Have you tried naming your query ? |
Beta Was this translation helpful? Give feedback.



I was finally able to fix it. This is way how I got it worked -