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
There is a custom scalar defined in the schema called Object. The generated code creates a typealias called Object which clashes with the ApolloAPI.Object struct.
Is there a way to alias certain types?
Schema scalar Object
Generated Code public typealias Object = String
ApolloAPI Object type
public struct Object: Hashable {
public init(
typename: String,
implementedInterfaces: [Interface]
) {
self.typename = typename
self.implementedInterfaces = implementedInterfaces
}
Version
1.5.0
Steps to reproduce the behavior
Create a schema with custom scalar named Object.
scalar Object
type Foo {
bar: Object
}
Using the codegen cli, generate the schema using the schema file listed above
Open the package / project with the auto-generated code
Compile issue will occur due to having two types with the same name.
Logs
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Summary
There is a custom scalar defined in the schema called Object. The generated code creates a typealias called Object which clashes with the ApolloAPI.Object struct.
Is there a way to alias certain types?
Schema
scalar Object
Generated Code
public typealias Object = String
ApolloAPI Object type
Version
1.5.0
Steps to reproduce the behavior
scalar Object
type Foo {
bar: Object
}
Logs
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: