You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public final class GetSimpleQueryQuery: GraphQLQuery {
public static let operationDefinition =
"query GetSimpleQuery {" +
" member {" +
" profile {" +
" private" +
" }" +
" }" +
"}"
public init() {
}
public struct Data: GraphQLMappable {
public let member: Member?
public init(reader: GraphQLResultReader) throws {
member = try reader.optionalValue(for: Field(responseName: "member"))
}
public struct Member: GraphQLMappable {
public let __typename = "Member"
public let profile: Profile
public init(reader: GraphQLResultReader) throws {
profile = try reader.value(for: Field(responseName: "profile"))
}
public struct Profile: GraphQLMappable {
public let __typename = "MemberProfile"
public let private: Bool?
public init(reader: GraphQLResultReader) throws {
private = try reader.optionalValue(for: Field(responseName: "private"))
}
}
}
}
}
Which produces the error:
Keyword private cannot be used as an identifier here
When generating .swift files can we escape these?
The text was updated successfully, but these errors were encountered:
If you have a query like:
This'll generate
Which produces the error:
When generating .swift files can we escape these?
The text was updated successfully, but these errors were encountered: