I need some guidance how best practice working with Apollo’s generated struct getting transformed into a class. I am lite of further explanation here as my previous post might have been too much detail.
Main detail, I have many such queries with the same schema
The class does not have to be Codeable, its just mine is right now
Query Results
query GettingEvents {
events {
id : Int
guid : String
featuredImage {
id : Int
formats : JSON
}
}
}
Class
class SingleRecord : Codable, Identifiable {
id
title
...