Skip to content

Commit

Permalink
GenericResponse schema type
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredh159 committed Jun 6, 2022
1 parent fbcec95 commit 1f91eb6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/DuetGraphQL/Schema.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ public enum Schema<Resolver> {
Field("id", at: \.id.lowercased)
}
}

public static var GenericResponseType: AppType<GenericResponse> {
Type(GenericResponse.self) {
Field("success", at: \.success)
}
}
}

public struct InputArgs<Input: Codable>: Codable {
Expand Down

0 comments on commit 1f91eb6

Please sign in to comment.