Skip to content

Apollo Codegen neither should ignore errors in gql queries nor skip bad queries  #979

@vitrukroman

Description

@vitrukroman

This query contains syntax error: there should be $ before language

const similarMoviesQuery = gql`
query SimilarMovies($id: Int!, language: Language!) {
  ...
}`;

When to run apollo codegen, it skips this file and does not generate TypeScript interfaces for it.
✔ Loading Apollo Project
✔ Generating query files with 'typescript' target - wrote 5 files (should be 6)

No errors and no warnings... It does not create types for this query.

Expected that some error/warning appears in the console if query/mutation contains syntax error etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions