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
Cut Data Warehouse Costs up to 54% with BigQuery Icon
Cut Data Warehouse Costs up to 54% with BigQuery

Migrate from Snowflake, Databricks, or Redshift with free migration tools. Exabyte scale without the Exabyte price.

BigQuery delivers up to 54% lower TCO than cloud alternatives. Migrate from legacy or competing warehouses using free BigQuery Migration Service with automated SQL translation. Get serverless scale with no infrastructure to manage, compressed storage, and flexible pricing—pay per query or commit for deeper discounts. New customers get $300 in free credit.
Try BigQuery 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