Skip to content

Instantly share code, notes, and snippets.

@jsoneaday
Created October 3, 2020 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsoneaday/150966f9b9c270a7182e1c5f3bc288bc to your computer and use it in GitHub Desktop.
Save jsoneaday/150966f9b9c270a7182e1c5f3bc288bc to your computer and use it in GitHub Desktop.
ApolloClient
import CoreData
import Apollo
class GqlClient {
static let shared = GqlClient()
private(set) lazy var apollo = ApolloClient(url: URL(string: "http://localhost:8000/graphql")!)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment