diff --git a/Package.swift b/Package.swift index 5e5dc025..dcf43958 100644 --- a/Package.swift +++ b/Package.swift @@ -1,11 +1,11 @@ -// swift-tools-version:5.6 +// swift-tools-version:5.7 import PackageDescription let package = Package( name: "swift-graphql", platforms: [ - .iOS(.v13), + .iOS(.v15), .macOS(.v10_15), .tvOS(.v13), .watchOS(.v6) diff --git a/website/docs/README.mdx b/website/docs/README.mdx index 4058c868..50aebca0 100644 --- a/website/docs/README.mdx +++ b/website/docs/README.mdx @@ -19,6 +19,9 @@ The library is centered around three core principles: SwiftGraphQLClient is heavily inspired by `urql` GraphQL client in the JavaScript community. It models the queries as streams of values and lets you create custom operation processors called exchanges. ```swift +import SwiftGraphQLClient +import GraphQL + let request = URLRequest(url: URL(string: "http://127.0.0.1:4000/graphql")!) let client = SwiftGraphQLClient.Client(request: request)