The Swift implementation for GraphQL, a query language for APIs created by Facebook. The GraphQLSchema object can be used to define GraphQL Schemas and Types. These schemas are made up of types, fields, arguments, and resolver functions. This repo only contains the core GraphQL implementation and does not focus on the ease of schema creation. For a better experience when creating your GraphQL schema use Graphiti. This package supports GraphQL subscription, but until the integration of AsyncSequence in Swift 5.5 the standard Swift library did not provide an event-stream construct. For historical reasons and backwards compatibility, this library implements subscriptions using an EventStream protocol that nearly every asynchronous stream implementation can conform to. To create a subscription field in a GraphQL schema, use the subscribe resolver that returns an EventStream.

Features

  • The Swift implementation for GraphQL
  • The GraphQLSchema object can be used to define GraphQL Schemas and Types
  • This package supports GraphQL subscription
  • To create a subscription field in a GraphQL schema
  • You must also provide a resolver, which defines how to process each event as it occurs and must return the field result type
  • For a better experience when creating your GraphQL schema use Graphiti

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Swift for GraphQL

Swift for GraphQL Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Swift for GraphQL!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Swift

Related Categories

Swift Software Development Software

Registered

2023-03-07