[英]How to query data from `PostgresSql`?
我使用NestJj , PostgreSQL和Graphql作為后端, Flutter , graphql_flutter作為前端。 我有一個這樣的collection store : 我想得到以下結果:[ { type:'A', details:[ ...
[英]How to query data from `PostgresSql`?
我使用NestJj , PostgreSQL和Graphql作為后端, Flutter , graphql_flutter作為前端。 我有一個這樣的collection store : 我想得到以下結果:[ { type:'A', details:[ ...
[英]Flutter OperationException(linkException: ResponseFormatException(originalException: FormatException: Unexpected end of input (at character 1)
以前我使用的是graphql版本 3.1.0,它工作正常,能夠按預期接收請求,但最近我不得不將我的 flutter 版本更新到 2.10.3 和所有其他包,包括 graphql。 現在我正在使用 v.5.1.0,但突然出現此錯誤。 僅將 documentNode 更改為 Query 中的 docu ...
[英]Flutter GraphQL - OperationException(linkException: ResponseFormatException(originalException: FormatException: Unexpected character (at character 1)
使用 graphql_flutter package 的變異方法時出現此錯誤。 嘗試使用以下版本的qraphql_flutter package: 5.0.1-beta.1 5.0.0 4.0.0-beta.5 錯誤: I tried running query using the sam ...
[英]graphql-flutter subscriptions in flutter connectivity issue
我是 flutter 開發的新手,但我在 nodejs 和 graphql 方面有很好的經驗。我正在嘗試使用 graphql-flutter 的訂閱小部件並更新更改。 但未建立連接。 但我可以使用查詢和突變小部件並獲得結果。 graphql-flutter 團隊提供的示例已有 2 年歷史,與htt ...
[英]Graphql returning typename error for mutation with set of key-value pairs
我們為 Flutter 應用程序設置了 graphql 服務器。 我們從應用程序到服務器的突變調用之一是返回字段__typename的驗證錯誤,該字段實際上是 graphql 客戶端在后台自動添加的字段(即不受開發人員控制)。 關於如何解決此錯誤的任何想法? 我的設置客戶端:使用graphql_fl ...
[英]graphql_flutter mutation query expects return statement - not sure how to add it
builder 方法上的變異查詢需要返回語句,我不確定在何處以及如何將其添加到以下代碼中。 我相信變異查詢應該返回操作的通過或失敗。 在過去的幾天里,我一直在努力解決這個問題。 我仍然不知道出了什么問題。 我有這個方法,當用戶填寫一次性代碼時,它會在 onCompleted 回調上調用。 ...
[英]how to replace "OptimisticCache" in GraphQL flutter?
我只是將graphql_flutter版本“3.1.0”升級到“5.0.0-nullsafety.5”。 IDE 有一個例外:“方法 'OptimisticCache' 沒有為類型 'GraphQLService' 定義。” 我的代碼: ValueNotifier( GraphQ ...
[英]How to set up login token for graphql/flutter
我為我的應用設置了登錄/注冊,目前使用硬編碼令牌。 但是,我想在登錄時設置動態令牌。 這是我現在擁有的代碼。 ...
[英]Error when connecting to Graphql API using graphql_flutter
我正在嘗試將 graphql_flutter 用於我的 flutter 應用程序,但無法建立連接,並且出現以下錯誤: 我的猜測是錯誤說端口是 36582,但我的服務器在 localhost 的端口 4000 上。 這是主應用程序的代碼 地址也是正確的,最后不包括“/graphql”。 查詢在 pos ...
[英]aws appsync subscription not working with flutter graphql_flutter package
我的 pubspec.yaml roomctrl.dart client_provider.dart 常量.dart [https://docs.aws.amazon.com/appsync/latest/devguide/real-time-websocket-client.html][1 ...
[英]unable to use both useFuture() and useValueChanged() in same HookWidget
我有一個帶有useValueChanged偵聽器的掛鈎小部件,如下所示: 並且changeLayout(..)使用useFuture(..)進行 graphql 突變調用並返回包裝在AsyncSnapshot中的 Future 該值在onTap回調中更改如下: 我的 HookWidget 拋出類型 ...