Closed
Description
Here is our configuration with Apollo 1.0.3
let configuration = ApolloCodegenConfiguration(schemaName: "GQL",
input: .init(schemaPath: urlToSchemaFile.absoluteString),
output: .init(schemaTypes: .init(path: outputURL.absoluteString,
moduleType: .other),
operations: .inSchemaModule))
I'm using other
as moduleType
and inSchemaModule
because we're already having a package ready to accept the code generated by GraphQL. And we want all the GQL code to be within this package.
Using 0.5.X it was working fine, new codegen split the files using the same file name in different folders, this is not something that is supported in a Swift Package or even the targets in Xcode.
Xcode fail to compile it with those kind of errors