flutter - 如何在 Flutter 中过滤 GraphQL 查询中的数据?
问题描述
我在 Flutter 中使用 GraphQL。我没有太多在 Flutter 中使用 GraphQL 的经验。代码如下:
WidgetsFlutterBinding.ensureInitialized();
final HttpLink link = HttpLink(
uri: 'https://api.spacex.land/graphql/',
);
ValueNotifier<GraphQLClient> client = ValueNotifier(
GraphQLClient(
cache: InMemoryCache(),
link: link,
),
);
runApp(MyApp(client: client));
}
我必须通过调用 GraphQL 查询“启动”来执行此公共后端公开的“mission_name”字段过滤:https ://api.spacex.land/graphql/ 。但我不知道该怎么做。如果有人知道该怎么做,请帮助我。谢谢
解决方案
推荐阅读
- node.js - React-native如何在键盘上方向上移动Textfield
- python - 如何用矩阵运算替换 for 循环?
- php - 在简码中动态插入 WooCommerce 产品 ID
- swift - DispatchQueue.main.async 无法访问转义闭包参数?
- sql - MS Access SQL 联合查询顺序按问题
- javascript - 如何打破我的可观察对象的流程以使用 RXJS 调用另一个可观察对象?
- service-worker - This is a compatibility issue with the service workers for the webview of the ios device
- python - Conditional local import exception
- python - 如何在 Mac 上的 Python 虚拟环境中调用 MATLAB 库
- c# - 当方法包含数据库交互时作业未执行