패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.12.0+6

ferry_generator

Ferry GraphQL 클라이언트용으로 생성된 유형

AndroidiOSmacOSWindowsLinux
30일 다운로드
6.6천
좋아요
23
Pub 점수
120

패키지 설치

flutter pub add ferry_generator

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Ferry Generator는 Ferry GraphQL 클라이언트용 코드 생성 도구로, GraphQL 작업에서 타입 안전한 Dart 클래스를 생성하도록 설계되었습니다. 스키마 및 쿼리 파일을 기반으로 모델, 쿼리, 변형 및 구독을 자동으로 생성함으로써 GraphQL 사용을 간소화합니다. 이는 브로일러플레이트를 줄이고, 타입이 GraphQL API와 일치하도록 하여 런타임 오류를 최소화합니다. 이 생성기는 Flutter 프로젝트에 원활하게 통합되며 Android, iOS, macOS, Windows, Linux 등 여러 플랫폼을 지원합니다.

사용 사례

  • 자동으로 GraphQL 작업 유형 생성
  • GraphQL 스키마에서 타입 안전한 모델 생성
  • Flutter 앱에서 변형 및 쿼리 처리를 간소화하세요
  • GraphQL 작업의 컴파일 시 검증을 활성화합니다
  • 크로스 플랫폼 GraphQL 클라이언트 지원

주요 기능

  • GraphQL 파일에서 Dart 클래스 생성
  • GraphQL 작업에 대한 타입 안전성을 보장합니다
  • 페리 클라이언트와 통합
  • 쿼리, 변동 및 구독을 지원합니다
  • 최소한의 보일러플레이트 코드를 생성합니다

적합한 대상

  • Ferry GraphQL 클라이언트를 사용하는 Flutter 개발자
  • GraphQL 사용 시 타입 안전성을 우선시하는 팀
  • 효율적인 GraphQL 코드 생성이 필요한 프로젝트
  • 공유된 GraphQL 로직을 가진 여러 플랫폼을 대상으로 하는 앱
  • 수동 코드 유지보수를 줄이려는 개발자

고려 사항

  • GraphQL 스키마 및 작업 파일이 필요합니다
  • 런타임 기능을 위해 Ferry 클라이언트에 의존합니다
  • pubspec.yaml에 올바른 설정이 필요합니다
  • 복잡한 스키마에 대해 추가 구성이 필요할 수 있습니다
  • 페리의 런타임 라이브러리와 함께 사용할 때 가장 효과적입니다

원본 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

카테고리

의존성

의존성 목록 15 개

소스 저장소

이 패키지를 사용하는 프로젝트