apollo-ios: Error "Variable "$id" is never used" not fail build process

when generate API.swift with graphql file that has unuse variables. an error Variable "xxx" is never used in operation "xxx" is log but build process is success and run an app normally

query Repo($id: ID!) {
    currentuser {
        id
    }
}

but on other error, the build process will fail

Ex. generate API.swift with below graphql result an error

error: Cannot query field "something" on type "Query". Did you mean "setting"?

and build process is fail

query Repo {
    currentuser {
        id
    }
    something
}

PS: Apollo version 0.27.1

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

Ahhh got it. OK, will talk to some tooling folks on this.

(FYI that team is super backed up, so it may take some time)