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
Easily Host LLMs and Web Apps on Cloud Run Icon
Easily Host LLMs and Web Apps on Cloud Run

Run everything from popular models with on-demand NVIDIA L4 GPUs to web apps without infrastructure management.

Run frontend and backend services, batch jobs, host LLMs, and queue processing workloads without the need to manage infrastructure. Cloud Run gives you on-demand GPU access for hosting LLMs and running real-time AI—with 5-second cold starts and automatic scale-to-zero so you only pay for actual usage. New customers get $300 in free credit to start.
Try Cloud Run 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