AA

apollographql/apollo-ios

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

4천 stars 품질 60 트렌드 35MIT

📱 Swift로 작성된 iOS용 강력한 타이핑 캐싱 GraphQL 클라이언트입니다.

개요

아폴로 iOS 아폴로 iOS는 강력한 캐싱, 견고한 코드 생성, 직관적인 API를 제공하여 앱 개발을 가속화합니다. ✅ - 지능형 ✅ 인메모리 또는 SQLite 기본 제공 - 네트워크 응답을 위한 손글씨 모델의 시대는 끝났습니다! ✅ - 사용자를 '성공의 구렁텅이'로 이끌고 기본적으로 ✅ 좋은 관행을 장려함 - 전 세계 수백만 명의 최종 사용자를 지원하는 수많은 앱을 구동합니다 ApolloClient를 사용할 애플리케이션 내 모든 타겟은 Apollo 제품에 의존성이 있어야 합니다. Apollo가 생성한 모델만 사용하는 타겟은 Apollo 제품과 연결할 필요가 없습니다. * - Q&A 및 토론 * - 커뮤니티와의 실시간 채팅 오늘 내일 로드맵을 제공하는 포괄적인 API 오케스트레이션 도구 모음을 활용해 보세요: * - GraphQL 기반 온디바이스 캐싱을 지원하는 타입 안전 앱(React, iOS, Kotlin) * - 모든 GraphQL과 REST API를 하나의 GraphQL 엔드포인트로 조합하세요 * - AI는 API가 필요합니다.

개요(AI 번역)

Apollo iOS는 Swift로 작성된 강력한 타입의 캐싱 GraphQL 클라이언트입니다.

GraphQL 서버에 대해 쿼리와 뮤테이션을 실행할 수 있고, 쿼리별 Swift 타입으로 결과를 반환할 수 있습니다. 즉, JSON 파싱이나 사전 전달, 클라이언트가 수동으로 값을 올바른 타입으로 캐스트하도록 할 필요가 없습니다. 또한 모델 타입을 직접 작성할 필요도 없습니다. 왜냐하면 이 타입들은 UI가 사용하는 GraphQL 정의에서 생성되기 때문입니다.

생성된 타입이 쿼리별로 적용되기 때문에, 실제로 쿼리의 일부로 지정한 데이터에만 접근할 수 있습니다. 필드를 요청하지 않으면 해당 속성에 접근할 수 없습니다. 즉, 이제 Swift 타입 검사기를 통해 데이터 접근 오류가 컴파일 시점에 나타나는지 확인할 수 있습니다. Xcode 연동을 통해 UI 코드와 GraphQL 정의를 편리하게 나란히 사용할 수 있고, 쿼리 문서를 검증하고 오류를 인라인에서 보여줍니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Apollo iOS is a strongly-typed, caching GraphQL client, written in Swift.

It allows you to execute queries and mutations against a GraphQL server, and returns results as query-specific Swift types. This means you don’t have to deal with parsing JSON, or passing around dictionaries and making clients cast values to the right type manually. You also don’t have to write model types yourself, because these are generated from the GraphQL definitions your UI uses.

As the generated types are query-specific, you’re only able to access data you actually specify as part of a query. If you don’t ask for a field, you won’t be able to access the corresponding property. In effect, this means you can now rely on the Swift type checker to make sure errors in data access show up at compile time. With our Xcode integration, you can conveniently work with your UI code and corresponding GraphQL definitions side by side, and it will even validate your query documents, and show errors inline.

Apollo iOS does more than simply run your queries against a GraphQL server: It normalizes query results to construct a client-side cache of your data, which is kept up to date as further queries and mutations are run. This means your UI is always internally consistent, and can be kept fully up-to-date with the state on the server with the minimum number of queries required.

GitHub에서 전체 README 보기

추천 도구

다른 키워드를 입력하거나 필터를 제거해 보세요.

설치

npx skillfish add apollographql/apollo-ios
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →