Questions tagged [graphql-flutter]

33 questions
10
votes
2 answers

graphql_flutter Error: The non-abstract class 'GraphQLWebSocketChannel' is missing implementations

I am trying to use graphql_flutter (https://pub.dev/packages/graphql_flutter) for my MVVM architecture. (https://stacked.filledstacks.com/docs/getting-started/overview) I got this error below from the package graphql_flutter when I try to run my…
alexa tang
  • 115
  • 1
  • 6
5
votes
1 answer

Flutter GraphQL - OperationException(linkException: ResponseFormatException(originalException: FormatException: Unexpected character (at character 1)

I am getting this error while using mutate method of graphql_flutter package. Tried with following versions of qraphql_flutter package: 5.0.1-beta.1 5.0.0 4.0.0-beta.5 Error: I/flutter (13946): //// EXCEPTION: OperationException(linkException:…
Milan Surelia
  • 884
  • 1
  • 8
  • 18
4
votes
0 answers

Offline mode using graph_flutter

Hi everyone I am trying to display my data in my flutter project using Cache Provider from graphql_flutter package when a user doesn't have an internet connection but it seems to not be working, so I was wondering if there is something I am missing,…
3
votes
1 answer

Flutter graphql show actual request

I'm using flutter_graphql and keep getting exception OperationException(linkException: ResponseFormatException(originalException: FormatException: Unexpected end of input (at character 1), )^ graphqlErrors: []), Is there a way to show the actual…
VDTe
  • 438
  • 1
  • 4
  • 17
3
votes
0 answers

Why GraphQL document parser throws PartialDataException (PartialDataException(path: __typename))?

I was working on a task related to GraphQL client configuration and this exception: PartialDataException (PartialDataException(path: __typename)) occurred while I was testing the code I wrote, and from then every query I execute throws this…
Eugen
  • 31
  • 2
3
votes
2 answers

How to set up login token for graphql/flutter

I have set a login/registration for my app and currently things work with a hard coded token. However, I want to set up dynamic token upon login. Here' the code I have for now. final AuthLink authLink = AuthLink( // getToken: () async => 'Bearer…
Jonathan Daniels
  • 169
  • 1
  • 3
  • 10
2
votes
0 answers

Connection closed before full header was received in flutter app with apollo server as backend

Created an flutter app with typegraphql and apollo server in backend. Application works fine. But at random times it throws an error, OperationException(linkException: ServerException(originalException: Connection closed before full header was…
Janith M S
  • 21
  • 1
2
votes
1 answer

how to replace "OptimisticCache" in GraphQL flutter?

I just upgrade graphql_flutter version "3.1.0" to "5.0.0-nullsafety.5". IDE has an exception: "The method 'OptimisticCache' isn't defined for the type 'GraphQLService'." My code: ValueNotifier( GraphQLClient( cache:…
Huu Bao Nguyen
  • 1,051
  • 2
  • 14
  • 40
2
votes
1 answer

Error when connecting to Graphql API using graphql_flutter

I am trying to use graphql_flutter for my flutter app but cannot establish connection and I'm getting the following error: I/flutter ( 6283): OperationException(linkException: ServerException(originalException: SocketException: OS Error: Connection…
Ripul
  • 41
  • 1
  • 2
2
votes
0 answers

How to differentiate errors using GraphQLClient in Flutter

I have a graphql service layer for my app as follows class GraphQLService { GraphQLClient client; GraphQLService({String jwt}) { createClient(jwt); } Future performQuery(String query, {Map
abiieez
  • 3,139
  • 14
  • 57
  • 110
1
vote
1 answer

Flutter Web: How to get XMLHttpRequest error details?

I'm working on a Flutter web application and I'm having problems handling low level errors properly. The application uses graphql-flutter, and it seems that any error is wrapped in a library OperationException. If you look closely, the exception…
1
vote
1 answer

Difficulty setting up AWS Amplify GraphQL data subscriptions

I am following the official online guide as well as this tutorial on how to set up subscriptions to data. I will be giving my two unfruitful attempts in this issue. I am using this configuration for both: imports: import 'dart:async'; import…
1
vote
0 answers

How to Call a Graphql Query again for every letter entered in autocomplete widget flutter?

I am able to search in a list using autocomplete widget in flutter and display the options to the user. But actually what I am supposed to do is I have to call graphql query everytime as user enters a letter/alphabet in autocomplete widget. I have…
Cassius
  • 353
  • 3
  • 16
1
vote
1 answer

Flutter OperationException(linkException: ResponseFormatException(originalException: FormatException: Unexpected end of input (at character 1)

Previously I was using graphql version 3.1.0 and it was working fine, able to receive request as expected, but recently I had to update my flutter version to 2.10.3 and all other packages, including graphql. Now I am using v.5.1.0 and I suddenly get…
VDTe
  • 438
  • 1
  • 4
  • 17
1
vote
0 answers

Graphql Pagination using flutter fetchmore callback calling builder method again which is refreshing my listview again from index 0

I am trying to use graphql_flutter plugin to fetch data from graphql API in this I have pagination using the offset if the offset is 0 it fetches the first 10 items if offset increases by 1 it fetches the next 10 so when I am using fetchmore…
1
2 3