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
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
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