Graphiti
Graphiti copied to clipboard
The Swift GraphQL Schema framework for macOS and Linux
Async-await will be added in Swift 5.5. https://github.com/apple/swift-evolution/blob/main/proposals/0296-async-await.md
Is there any behaviour that relies on String(describing: type) in ```swift // Sources/Graphiti/Definition/AnyType.swift final class AnyType : Hashable { // ... func hash(into hasher: inout Hasher) { hasher.combine(String(describing: type)) }...
Question, I'm looking for an easier way of parsing and handling errors on client. I want to add an extension to the `GraphQLError`, So I can add an error code...
Given this schema config: ```swift let schema = try Graphiti.Schema { Scalar(UUID.self) // define graphql types Query { Field("profile", at: ResolverRoot.profile, as: [Profile].self) { Argument("input", at: \.input).defaultValue(.init(page: 0, limit: 10))...
Following [Vapor's Validation API](https://docs.vapor.codes/4.0/validation/), I'm not really sure what is the right way to validate arguments in Graffiti. I've made the arguments struct conform to `Validatable` but since I cannot...
Hi! My team is looking to use this package in our BFF and I was trying to get the docker image to build but I'm running into an issue where...
I'm running Graphiti 0.26.0 and noticed that Mutations seem to be running in parallel when they should be running in series. A simple example would be: ``` mutation Test {...
**Getting Error:** {"errors":[{"message":"Variable \"$userId\" is never used in operation \"listUserStudies\".","locations":[{"line":2,"column":28}],"path":[]}]} **Query:** { query listUsersStudies($userId: String!){ listUsersStudies(limit: 250, filter: { pk: { matchPhrasePrefix: $userId } }){ items{ pk sk status versionStr...
I tried using @skip and @include in a query and they didn't seem to work.