Currently there's no way of creating a GraphQLResult due to every initialiser being internal.
GraphQLResult<Query.Data>(
data: data,
errors: nil,
source: .cache,
dependentKeys: nil
)
Fails with message Cannot convert value of type 'Query.Data?' to expected argument type '?'_
and
try GraphQLResponse(operation: query, body: json).parseResult()
Fails due to parseResult() being internal
Reading the threads it's clear to me that at least one of those methods was public before.
What should be the proper way to initialise a custom GraphQLResult?
Currently there's no way of creating a
GraphQLResultdue to every initialiser being internal.Fails with message Cannot convert value of type 'Query.Data?' to expected argument type '?'_
and
try GraphQLResponse(operation: query, body: json).parseResult()Fails due to
parseResult()being internalReading the threads it's clear to me that at least one of those methods was public before.
What should be the proper way to initialise a custom
GraphQLResult?