Tag: #flutter
-
GraphQL mutate operation failed. NonRetryableException{message=OkHttp client request failed., cause=null, recoverySuggestion=Irrecoverable error}
2 Graphql mutation operation fails in android but works in AppSync console Error: GraphQL mutate operation failed E/amplify:flutter:api( 4899): NonRetryableException{message=OkHttp client request failed., cause=null, recoverySuggestion=Irrecoverable error} E/amplify:flutter:api( 4899): at com.amplifyframework.api.aws.AppSyncGraphQLOperation$OkHttpCallback.onResponse(AppSyncGraphQLOperation.java:145) E/amplify:flutter:api( 4899): at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519) E/amplify:flutter:api( 4899): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) E/amplify:flutter:api( 4899): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) E/amplify:flutter:api( 4899): at java.lang.Thread.run(Thread.java:920) W/AtomicResult(mutate)( 4899): Attempted to send success value after initial…
-
Artemis code generation failing to build a Dart class for one of the types in my GraphQL schema
0 This is an excerpt from a schema I’m working on. I’m trying to use Artemis to generate Dart classes for a Flutter app. interface Node { """The ID of the object""" id: ID! } type PictureNode implements Node { """The ID of the object""" id: ID! image: String! created: DateTime! thumbs: ThumbnailsNode } type…
-
Flutter Data Model Doesn’t Update When Amplify Pulled
0 I’m using the AWS GraphQL database for my Flutter application. When I create my database on the AWS panel and type ‘amplify pull’ on the Flutter project terminal, there is no problem initially. All data models are created automatically successfully. The problem is, that I have created new data models on GraphQL and when…
-
How does the graphql-flutter cache update work when using subscriptions?
0 I am trying to build an app that uses GraphQL with the graphql-flutter package and with Blocs. I generated my graphql classes with the graphql_codegen package. In this app a list of events (the ‘History’) is shown. A few items are loaded, and after this ‘infinitive scroll’ will execute the ‘fetch more’ calls. The…
-
Flutter dataclass for GraphQL response – value can be another class or null
0 I am currently developing an app in Dart/Flutter and I am facing one issue with my data class to handle my GraphQL response. My User class is defined as following: import ‘package:json_annotation/json_annotation.dart’; import ‘/src/dataclasses/user_address.dart’; import ‘/src/dataclasses/user_birthdate.dart’; import ‘/src/dataclasses/user_legal_guardian.dart’; part ‘user.g.dart’; @JsonSerializable() class User { String? sub; String? email; String? username; List<dynamic>? roles; String? name;…
-
What is enum DataSource.Link in flutter ferry?
0 I am looking at this code in the file operation_response.dart from ferry_exec 0.3.1 https://pub.dev/packages/ferry_exec enum DataSource { /// A placeholder response source which can be used when waiting for another source None, /// Data originated from the client’s [Link] Link, /// Data originated from the [Cache] Cache, /// Data originated from a user-provided [OperationRequest.optimisticResponse]…
-
Defining relationships between different graphql model types
0 The context of our problem: We are new in using AWS DataStore via GraphQl and defined two models, Memory and UserLabel. type Memory @model { id: ID! authorId: String! text: String! createdOn: AWSDateTime! lastModifiedOn: AWSDateTime! userLabels: [UserLabel] @hasMany(fields: ["id"]) mapPin: [MapPin] @hasMany(fields: ["id"]) } type UserLabel @model { id: ID! authorId: String! name: String!…
-
AWS Amplify API with GraphQL access rules defined but not working
0 I’m using AWS Amplify API with GraphQL in my Flutter app and I have defined a GraphQL schema with the following access rules: Any user, authenticated or not, can read all UserProfiles. Only the owner can create, read, update, and delete their own UserProfile. I am authenticating users with amplify_auth_cognito using Email. This is…
-
Mobile People Community Day 2023 – Tech Conferences
Actions Panel We delve into different mobile technologies, including Native Android, Native iOS, and cross-platform frameworks like Flutter, Kotlin, etc. By Community DayFollow When and where Date and time August 15 · 6am – August 18 · 10am PDT Location Online About this event 3 days 4 hours Mobile eTicket “EVERY DAY IS A NEW…
-
graphql_flutter return LazyCacheMap, built_value deserializeWith JSON String, how to make them work together
4 graphql_flutter return LazyCacheMap, built_value deserializeWith JSON String, how to make them work together. I use graphql_flutter to fetch data, and response give the result data as LazyCacheMap. And using built_value for data model & data serialization, but since deserializeWith working with JSON String. What’s the best way to work with them together ? Should…