搜索插件、代码仓与 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 项

源码仓库

使用此插件的项目

暂无相关数据。