Skip to content

Introspection error with latest CLI #49

Closed
@noahemmet

Description

@noahemmet

Version 0.13.0 of Apollo iOS was just released, and it includes an update to the CLI from 1.9 to 2.16. Unfortunately, there's a breaking change around @directives.

When I run the code gen build script, I get a CLIError: Error in "Loading schema for Unnamed Project": Error: Introspection result missing directive locations: { onField: true, onOperation: false, args: [[Object]], name: "include", description: "Directs the executor to include this field or fragment only when the ifargument is true.", onFragment: true }

I haven't delved into it too much, but the error message was added in graphql/graphql-js#1429, in response to dotansimha/graphql-code-generator#556 (comment).

(I opened a ticket on the Apollo GitHub as well: apollographql/apollo-ios#665.)

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions