Skip to content

Type does not conform to protocol 'GraphQLOperation' #769

@adamirowe

Description

@adamirowe

I just upgraded our version of Apollo to 0.15.3 and nearly every query we use has a compile error of

Type 'xxx' does not conform to protocol 'GraphQLOperation'

If I add the Protocol stubs that xCode is suggesting (public var operationName: String), the errors go away. But since this is a dynamically generated file that's obviously not going to work next time I build.

Am I understanding correctly that we'll need to add operationName properties to all of our queries and mutations moving forward? I couldn't find anything in the examples or release notes about this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    build-issueIssues occurring when attempting to build

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions