We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
\n
You can find there is \n to separate fragments in apollo-codegen-core
apollo-codegen-core
const sourceWithFragments = [ operation.source, ...Array.from(fragmentsReferenced).map(fragmentName => { const fragment = fragments[fragmentName]; if (!fragment) { throw new Error(`Cannot find fragment "${fragmentName}"`); } return fragment.source; }) ].join("\n");
https://github.com/apollographql/apollo-tooling/blob/master/packages/apollo-codegen-core/src/compiler/visitors/generateOperationId.ts
However in apollo-codegen-swift, the missing \n causing operationId mismatch with server.
apollo-codegen-swift
if (fragmentsReferenced.size > 0) { this.printNewlineIfNeeded(); this.printOnNewline( "public var queryDocument: String { return operationDefinition" ); fragmentsReferenced.forEach(fragmentName => { this.print( `.appending(${this.helpers.structNameForFragmentName( fragmentName )}.fragmentDefinition)` ); }); this.print(" }"); }
https://github.com/apollographql/apollo-tooling/blob/master/packages/apollo-codegen-swift/src/codeGeneration.ts
The text was updated successfully, but these errors were encountered:
@Codebear98 Is this any better with iOS 0.13.0 (calling through to tooling 2.16) that's adding the trailing newline now?
Sorry, something went wrong.
checked apollo-ios 0.13.0 don't have such issues anymore, operationID is now valid! @designatednerd thanks for the upgraded!
No branches or pull requests
\n
in apollo-codegen-swift.You can find there is
\n
to separate fragments inapollo-codegen-core
https://github.com/apollographql/apollo-tooling/blob/master/packages/apollo-codegen-core/src/compiler/visitors/generateOperationId.ts
However in
apollo-codegen-swift
, the missing\n
causing operationId mismatch with server.https://github.com/apollographql/apollo-tooling/blob/master/packages/apollo-codegen-swift/src/codeGeneration.ts
The text was updated successfully, but these errors were encountered: