Files
2022-10-06 16:17:16 +03:00

32 lines
623 B
Swift

//
// AccountCheckNameRequest.swift
//
//
// Created by Juraldinio on 11.08.2022.
//
import Foundation
struct AccountCheckNameRequest: Encodable {
struct Variables: Encodable {
let username: String
}
// MARK: - GraphQL
let variables: Variables
let operationName = "checkWalletName"
let query: String = #"""
query checkWalletName(
$username: String!
) {
checkWalletName(username: $username) { errors }
}
"""#.trimCompact()
}
struct AccountCheckNameResponse: GraphQLResponse {
static let node = "checkWalletName"
}