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.
This query contains syntax error: there should be
$beforelanguageWhen 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.