搜尋套件、儲存庫與 APP 分類

套件詳情v0.7.0

ferry_exec

GraphQL 操作的強類型執行介面

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
7.7萬
喜歡數
1
Pub 分數
150

安裝套件

flutter pub add ferry_exec

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Ferry Exec 為 GraphQL 操作提供強類型執行介面,讓 Flutter 應用程式能安全且高效地與 GraphQL API 互動。它可無縫整合至 Ferry 生態系統,透過從 GraphQL 查詢產生 Dart 程式碼,實現編譯時期類型安全性,並減少執行時期錯誤。專為重視可靠性與效能的開發者設計,支援所有主要平台,包含 Android、iOS、Web、macOS、Windows 與 Linux。此套件確保查詢、變更與訂閱皆經過驗證,並以最少的樣板程式碼執行。

適用情境

  • 使用類型安全執行 GraphQL 查詢
  • 從 GraphQL 文件生成 Dart 程式碼
  • 與Ferry的客戶端堆疊整合
  • 建構可擴展的 GraphQL 驅動的使用者介面
  • 減少 API 呼叫中的執行時間錯誤

主要特色

  • 強類型 GraphQL 操作
  • 從 GraphQL 模式產生程式碼
  • 跨平台支援
  • 最小的樣板程式碼
  • 與Ferry客戶端的整合

適合對象

  • 使用 GraphQL 的 Flutter 開發人員
  • 重視類型安全的團隊
  • 需要可靠API互動的項目
  • 具有複雜 GraphQL 架構的應用程式
  • 使用 Ferry 生態系統的開發者

使用建議

  • 需要設定代碼生成
  • 依賴於渡輪生態系統
  • 需要 GraphQL 模式以進行代碼生成
  • 僅限使用 GraphQL 的項目
  • 由於程式碼產生,建置時間可能會增加

原始 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

所屬分類

依賴

依賴清單 8 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。