搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。