Apollo 2.4.6 with generateKotlinModels.set(true)
schema:
type Query {
foo(enumParam: [AnEnum!]): String
}
enum AnEnum {
A, B, C
}
query:
query Foo {
foo(enumParam: null)
}
This results in the following error when generating code:
Failed to parse GraphQL file (...)/Repro.graphql (15:23)
Can't parse `Array` value, expected array
----------------------------------------------------
[14]:query Foo {
[15]: foo(enumParam: null)
[16]:}
----------------------------------------------------
Good catch, fix there: https://github.com/apollographql/apollo-android/pull/2805
Most helpful comment
Good catch, fix there: https://github.com/apollographql/apollo-android/pull/2805