apollo-ios: Compile error of generated code with 0.17.0
Looks like we lost empty dictionary literals somewhere.
Query. Clearly has {}
which seems to be the issue trigger.
/// query ExplicitPreferenceCompanionQuestions {
/// ExplicitPreferences_personalizationQuestions(request: {}) {
/// __typename
/// companionsQuestion {
/// __typename
/// selected
/// }
/// }
/// }
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (12 by maintainers)
Commits related to this issue
- swift: Fix codegen with empty input objects / arrays The codegen was omitting the `[:]` and `[]` tokens entirely. Fixes apollographql/apollo-ios#838 — committed to lilyball/apollo-tooling by lilyball 5 years ago
- swift: Fix codegen with empty input objects / arrays The codegen was omitting the `[:]` and `[]` tokens entirely. Fixes apollographql/apollo-ios#838 — committed to lilyball/apollo-tooling by lilyball 5 years ago
- swift: Fix codegen with empty input objects / arrays The codegen was omitting the `[:]` and `[]` tokens entirely. Fixes apollographql/apollo-ios#838 — committed to lilyball/apollo-tooling by lilyball 5 years ago
This can probably stay closed since there is already a ticket that tracks the second issue. Also it can be worked around by not including the parameter that is being set to
null
. Assuming the server isn’t dependent on the difference between not set and set to null.