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
$300 in Free Credit for Your Google Cloud Projects Icon
$300 in Free Credit for Your Google Cloud Projects

Build, test, and explore on Google Cloud with $300 in free credit. No hidden charges. No surprise bills.

Launch your next project with $300 in free Google Cloud credit—no hidden charges. Test, build, and deploy without risk. Use your credit across the Google Cloud platform to find what works best for your needs. After your credits are used, continue building with free monthly usage products. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
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