搜索插件、代码仓与 APP 分类

插件详情v0.1.4

ferry_test_graphql

Ferry 测试中使用的示例 GraphQL 操作

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
106
喜欢数
0
Pub 分数
120

安装插件

flutter pub add ferry_test_graphql

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个用于 Ferry(Dart 和 Flutter 的 GraphQL 客户端)的实用程序包,提供测试中使用的示例 GraphQL 操作。它通过提供预定义的查询和变更,支持与 Ferry 测试套件集成,以在开发过程中验证 GraphQL 交互。专为自动化测试设计,确保在 Android、iOS、Web、macOS、Windows 和 Linux 等多个平台上对 GraphQL 端点进行一致且可靠的测试。该包是更广泛的 gql-dart 生态系统的一部分,补充了 Ferry 的类型安全 GraphQL 处理。

适合场景

  • 测试 GraphQL 查询和变更
  • 验证渡轮客户端行为
  • 确保测试中的模式合规性
  • 支持 CI/CD 流水线
  • 模拟 API 响应
  • 调试 GraphQL 集成

主要特点

  • 预定义测试 GraphQL 操作
  • 与Ferry测试框架集成
  • 跨平台兼容性
  • 类型安全的操作定义
  • 所需设置最少
  • gql-dart 生态系统的一部分

适合对象

  • 使用 Ferry 的 Flutter 开发人员
  • 测试自动化工程师
  • GraphQL API 测试工具
  • CI/CD 流水线实施者
  • Dart 项目中的 GraphQL 客户端

使用建议

  • 需要设置渡轮客户端
  • 不适用于生产环境
  • 依赖于 gql-dart 生态系统
  • 仅限测试场景
  • 需要正确的模式定义
  • 最好与模拟服务器配合使用

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

A simple, powerful GraphQL Client for Flutter and Dart

MIT License PRs Welcome Watch on GitHub Star on GitHub Watch on GitHub Discord

Documentation 📖

Features

  1. ✅ Fully Typed: work faster and safer with compile time checks and IDE autocomplete, including fully typed Cache reads and writes.
  2. 🔄 Built-In Code Generators: automatically generated immutable data classes for all your GraphQL Operations and Fragments, based on your schema.
  3. 🌐 Customizable Network Interface: highly customizable network interface using gql_link, allowing you to compose and extend Links.
  4. ✨ Normalized Optimistic Cache: keep data in sync with cache normalization and update your UI instantly with optimistic data.
  5. 💾 Multiple Data Stores: extensible Store interface with built-in MemoryStore and HiveStore (which uses hive for offline persistence).
  6. 📄 Refetch & Pagination: easily update responses with new data or combine multiple responses, allowing for seamless pagination.
  7. 📱 Flutter Widgets: Widgets for Queries, Mutations, and Subscriptions, available out of the box.
  8. 🧈 Smooth: Run queries in a separate Isolate to free up resources on the UI thread

Packages

This repo is a monorepo for ferry and related packages.

Pub Package Description
version package:ferry Stream-based GraphQL Client
version package:ferry_cache Normalized, strongly typed, optimistic cache
version package:ferry_exec Strongly typed GraphQL execution interface
version package:ferry_flutter Flutter Widgets for GraphQL Operations
version package:ferry_generator Dart Type Generator for GraphQL Operations
version package:ferry_store Data Persistence for ferry's cache
version package:ferry_hive_store Hive implementation of ferry_store
version package:normalize Normalization / denormalization of GraphQL data

所属分类

依赖

依赖清单 6 项

源码仓库

使用此插件的项目

暂无相关数据。