-
Notifications
You must be signed in to change notification settings - Fork 731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing argument label 'dynamicMember:' in subscript for generated code #2626
Comments
Hi @AlexHartford, I believe the change you're referring to in Can you share a code sample demonstrating your issue with the parameter name. It would help narrow down on what the problem is.
You should never need to manually edit the generated files unless the header comment states they won't be overwritten, such as the schema configuration file. |
Here's an example of the code that got generated. I downloaded the cli and installed manually from the main branch to generate this code.
|
I've built a demo app that builds fine with this type of input - issue2626.zip. I didn't include the generated files in that archive so you can verify the generation builds as expected. Use the command Your specific issue I believe is being caused by a mismatched version of the CLI and your project dependency. I think you're using We're aware of this versioning issue and trying to figure out a way around it - see #2562. |
Okay, next time I generate the code I will make sure the versions all match - appreciate your time. |
Bug report
After following the getting started instructions, the generated code will not compile as the dynamicMember argument label is missing. It looks like this field has since been renamed "key" which would introduce more problems in future code. My suggested fix is #2627 which simply removes the required label. It looks like this is how code is being generated currently so not sure how anyone is actually able to use the generated code and I'm surprised there aren't any other issues around this.
Versions
Please fill in the versions you're currently using:
apollo-ios
SDK version: 1.0.2Steps to reproduce
dynamicMember
.Further details
I have a large schema so manually updating the generated files is quite cumbersome. I believe this is a simple issue to resolve.
The text was updated successfully, but these errors were encountered: