• Stars
    star
    598
  • Rank 74,853 (Top 2 %)
  • Language
    Swift
  • License
    MIT License
  • Created about 4 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A GraphQL client that lets you forget about GraphQL.

A GraphQL client that lets you forget about GraphQL.

CI Tests

www.swift-graphql.com

Features

  • ✨ Intuitive: You'll forget about the GraphQL layer altogether.
  • πŸ– Time Saving: I've built it so you don't have to waste your precious time.
  • ☝️ Generate once: Only when your schema changes.
  • ☎️ Subscriptions: Listen to subscriptions using webhooks.
  • πŸ” High Level: You don't have to worry about naming collisions, variables, anything. Just Swift.

Overview

SwiftGraphQL is a GraphQL Client that ships with a type-safe query builder. It lets you perform queries, mutations and listen for subscriptions. The query builder guarantees that every query you can create is valid and complies with the GraphQL spec.

The library is centered around three core principles:

  • πŸš€ If your project compiles, your queries work.
  • πŸ¦‰ Use Swift in favour of GraphQL wherever possible.
  • πŸ•Š Packages shouldn't lock you in to the "framework".

You can use only parts of SwiftGraphQL that are useful to you (e.g. use GraphQLWebSocket implementation but not the query builder, or WebSocket but not the client).

Documentation

You can find detailed documentation on the SwiftGraphQL page at www.swift-graphql.com.

Examples

You can find examples of how to use a local GraphQL API or remote one in the /examples directory.

  • thesocialnetwork - a simple chat app that shows how to swift-graphql with queries and subscriptions,
  • GitHubStars - shows how to use GitHub API with swift-graphql.

Other Libraries

SwiftGraphQL solves a set of specific problems but it doesn't solve every problem. Depending on your needs, you may also want to check out


Thank you

I would like to dedicate this last section to everyone who helped develop this library.

  • First, I would like to thank Dillon Kearns, the author of elm-graphql, who inspired me to write the library, and helped me understand the core principles behind his Elm version.
  • Second, I would like to thank Peter Albert for giving me a chance to build this library, having faith that it's possible, and all the conversations that helped me push through the difficult parts of it.
  • Thirdly, special thanks to Phil Pluckthun who explained all the bits of how urql and wonka work,
  • Fourthly, thanks to Orta Therox for helping me navigate Combine.
  • Lastly, I'd like to thank every contributor to the project. SwiftGraphQL is better because of you. Thank you!

Thank you! πŸ™Œ


License

MIT @ Matic Zavadlal

More Repositories

1

graphql-shield

πŸ›‘ A GraphQL tool to ease the creation of permission layer.
TypeScript
3,555
star
2

nookies

πŸͺ A set of cookie helpers for Next.js
TypeScript
2,269
star
3

emma-cli

πŸ“¦ Terminal assistant to find and install node packages.
TypeScript
1,228
star
4

graphql-middleware

Split up your GraphQL resolvers in middleware functions
TypeScript
1,134
star
5

ink-table

πŸ“A table component for Ink.
TypeScript
180
star
6

graphql-middleware-apollo-upload-server

Upload is hard, that's why we do it for you. πŸŽ‰
TypeScript
130
star
7

ink-autocomplete

🧠 An autocomplete component for Ink.
JavaScript
80
star
8

label-sync

🏷 A delightful companion to manage Github Labels across multiple repositories.
TypeScript
60
star
9

creato

πŸ‘¨πŸ»β€πŸ­ create-app for any occasion
TypeScript
24
star
10

graphql-middleware-forward-binding

GraphQL Binding forwardTo plugin for GraphQL Middleware
TypeScript
23
star
11

graphql-server-file-upload-example

πŸ’Ύ GraphQL Server examples: File API
TypeScript
21
star
12

graphql-server-github-auth-example

GraphQL Server examples: Authentication
TypeScript
20
star
13

kayu

TypeScript GraphQL client that lets you forget about GraphQL
TypeScript
15
star
14

sponsorsme

A lightweight utility to check whether a user sponsors you.
TypeScript
14
star
15

prisma-converter

Convert your Prisma 1.0 datamodel to Prisma 2.0
TypeScript
13
star
16

resk

βœ‚οΈ Automatically create gists from your code.
JavaScript
9
star
17

multilinestring

The missing template literal for NodeJS.
TypeScript
7
star
18

gimb-events

🎟A ticketing system for all Gimnazija Bežigrad events
TypeScript
4
star
19

sessions

Manage NodeJS server sessions easily in-memory or in Redis.
TypeScript
4
star
20

reserve-npm

πŸ“¦ A CLI tool which helps you reserve a NPM package name
TypeScript
3
star
21

github-tree

πŸ™ Github API commits made easy peasy
TypeScript
3
star
22

semantha

πŸ’β€β™€οΈ A delightful mono-repository assistant.
TypeScript
2
star
23

multiwatch

A web application for better multiple stopwatch-times handling.
JavaScript
1
star
24

graphql-vs-rest

Elm
1
star
25

resizable-dots

Simple Elm app.
HTML
1
star
26

nepremicnine

Repozitorij s projektno nalogo pri Programiranju 1
HTML
1
star
27

stars

Draw.
Elm
1
star