Used apollo-ios-cli to generate Swift code from my graphql.
When building via XCode 14.2, I get the following errors
=====
./graph-ql-trial/MySchema/Sources/Operations/Queries/MyQuery.graphql.swift:8:41: warning: 'DocumentType' is deprecated: renamed to 'OperationDocument'
public static let document: ApolloAPI.DocumentType = .notPersisted(
^
./graph-ql-trial/MySchema/Sources/Operations/Queries/MyQuery.graphql.swift:8:41: note: use 'OperationDocument' instead
public static let document: ApolloAPI.DocumentType = .notPersisted(
^~~~~~~~~~~~
OperationDocument
./graph-ql-trial/MySchema/Sources/Operations/Queries/MyQuery.graphql.swift:6:14: error: type 'MyQuery' does not conform to protocol 'GraphQLOperation'
public class MyQuery: GraphQLQuery {
^
./graph-ql-trial/MySchema/Sources/Operations/Queries/MyQuery.graphql.swift:6:14: note: do you want to add protocol stubs?
public class MyQuery: GraphQLQuery {
^
./graph-ql-trial/MySchema/Sources/Operations/Queries/NagDashboardQuery.graphql.swift:8:41: warning: 'DocumentType' is deprecated: renamed to 'OperationDocument'
public static let document: ApolloAPI.DocumentType = .notPersisted(
^
./graph-ql-trial/MySchema/Sources/Operations/Queries/NagDashboardQuery.graphql.swift:8:41: note: use 'OperationDocument' instead
public static let document: ApolloAPI.DocumentType = .notPersisted(
^~~~~~~~~~~~
OperationDocument
./graph-ql-trial/MySchema/Sources/Operations/Queries/NagDashboardQuery.graphql.swift:6:14: error: type 'NagDashboardQuery' does not conform to protocol 'GraphQLOperation'
public class NagDashboardQuery: GraphQLQuery {
^
./graph-ql-trial/MySchema/Sources/Operations/Queries/NagDashboardQuery.graphql.swift:6:14: note: do you want to add protocol stubs?
public class NagDashboardQuery: GraphQLQuery {