You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I integrated Apollo using Cocoapods.
Pod 'Apollo','~> 1.0.7'
then cd to the directory where apollo-ios-cli is located, and execute init, fetch-schema, generate and other commands respectively.
Then add the automatically generated folders and internal files to the project.
Finally, apollo is called in the project to test the connection.
But the reference to the automatically generated BankInfoQuery file reported an error, as shown in the following figure:
when I removed the extension from the BankInfoQuery file, the error was eliminated.
Does this have any effect on the removal of 'extension schemeName'' from the query.graphql file? Or in what way to prevent it from being generated automatically.
When the embeddedInTarget(name:) module type is used we wrap the schema module in a caseless enum to prevent type conflicts. In this case you probably need to use schemaApi.BankInfoQuery(), and remove the comment around public extension schemaApi {
Summary
I integrated Apollo using Cocoapods.
Pod 'Apollo','~> 1.0.7'
then cd to the directory where apollo-ios-cli is located, and execute init, fetch-schema, generate and other commands respectively.
Then add the automatically generated folders and internal files to the project.
Finally, apollo is called in the project to test the connection.
But the reference to the automatically generated BankInfoQuery file reported an error, as shown in the following figure:


when I removed the extension from the BankInfoQuery file, the error was eliminated.


Does this have any effect on the removal of 'extension schemeName'' from the query.graphql file? Or in what way to prevent it from being generated automatically.

In addition, if you call it in the way that ‘Fetch a query’ is recorded on https://www.apollographql.com/docs/ios/get-started, there will be an error of URLSessionClientError.sessionInvalidated.
Version
1.0.7
Steps to reproduce the behavior
When runing the code.
Logs
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: