在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):apollographql/apollo-ios开源软件地址(OpenSource Url):https://github.com/apollographql/apollo-ios开源编程语言(OpenSource Language):Swift 97.3%开源软件介绍(OpenSource Introduction):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. This combination of models with value semantics, one way data flow, and automatic consistency management, leads to a very powerful and elegant programming model that allows you to eliminate common glue code and greatly simplifies app development. Getting startedIf you are new to Apollo iOS there are two ways to get started:
There is also comprehensive documentation including an API reference. Releases and changelogAll releases are catalogued and we maintain a changelog which details all changes to the library. RoadmapThe roadmap is a high-level document that describes the next major steps or milestones for this project. We are always open to feature requests, and contributions from the community. ContributingThis project is being developed using Xcode 12.5 and Swift 5.4. If you open
Some of the tests run against a simple GraphQL server serving the Star Wars example schema (see installation instructions there). If you'd like to contribute, please refer to the Apollo Contributor Guide. Maintainers
Who is Apollo?Apollo builds open-source software and a graph platform to unify GraphQL across your apps and services. We help you ship faster with:
Learn how to build with ApolloCheck out the Odyssey learning platform, the perfect place to start your GraphQL journey with videos and interactive code challenges. Join the Apollo Community to interact with and get technical help from the GraphQL community. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论