Closed xLuciferSx closed 10 months ago
Hi @xLuciferSx - I cannot reproduce this error when targeting the 1.8.0
release, see this sample project. If you're able to consistently reproduce the error please provide a sample application we can use.
From the last commit to the apollo-ios-codegen
repo this error should not be possible since the code we had to add the @defer
directive has been removed. The only way it could still be produced is if the schema declared two of the same directive but I believe that would have been an error in previous versions too.
Please share you email and i will share you sample package and graphqls file @calvincestari
That would be great, thank you. Send it to
Email sent.
I've received it. I'll take a look and get back to you.
Your schema declares two @defer
directives; one on line 6 and the other on line 27. Remove one of them and generate
works as expected.
Summary
Unable to generate new swift files due to this issue - There can be only one directive named "@defer".-GraphQLSchemaValidationError@
After updating to Apollo CLI 1.8.0, it continues to fail to generate the code.
Version
1.8.0
Steps to reproduce the behavior
run apollo-ios-cli generate command
Logs
No response
Anything else?
No response