【发布时间】:2020-08-06 21:13:50
【问题描述】:
我开始使用 Flutter web 和 graphql 开发网络应用 (https://pub.dev/packages/graphql_flutter)
尝试初始化 graphql 时出现此错误:
Uncaught (in promise) Error: Expected a value of type 'String', but got one of type '_Future<String>'
at Object.throw_ [as throw] (errors.dart:195)
at Object.castError (errors.dart:44)
at Object.cast [as as] (operations.dart:406)
【问题讨论】:
-
可以发一下初始化代码吗?