# All channels
Sachin D. Shinde@sachin-shinde
Guys, how to tell apollo codegen to look for the exact files for the queries?
Have issues with setting the --includes option. I detailed the issue here: https://stackoverflow.com/questions/59223331/how-to-tell-apollo-codegen-to-look-for-the-exact-files-for-the-queries
I can't seem to get `apollo client:download-schema` to work
I've been using the old tool, apollo-codegen which has worked fine, but for my current project, I decided to upgrade to apollo. So, the following works perfectly: npx apollo-codegen introspect-schema src/server/schema.graphql --output schema.json But when I try to run the newer…
Generate typescript definitions based only on localSchemaFile, not queries
I'd like to use apollo codegen:generate to create typescript definitions for the inputs and types in my localSchemaFile, without referencing any queries in my source code. context: I'm using a framework (vulcan) that actually programmatically generates queries for you, so there…
client:codegen not working with local state
I'm having the same issue as https://github.com/apollographql/apollo-tooling/issues/949, though I am using extend not re-declaring! 😖 Though the code itself all works fine (even the Apollo Dev Tools GraphiQL shows the new query field and it works and returns the test data), the…
"output" must be empty or a single directory name
When I specify exact path to ts file containing gql, my types generate successfully. Example: apollo codegen:generate --localSchemaFile=graphql-schema.json --target=typescript --includes src/api/login.ts --tagName=gql --addTypename --globalTypesFile=src/types/graphql-types.ts, …
VSCode: Cmd/Ctrl + click to go to definition yields a file not found
Although the schema loads correctly, doing a Cmd + click to go to the definition of a GraphQL type in a query is met with a message that it can't find the schema file. I'm not sure how to fix it! Output: Definition hint on hover is working properly: …
Apollo CLI Codegen vs. GraphQL Codegen + typescript-react-apollo?
I recently saw the new and improved @graphql-codegen/cli released with a config for generating react-apollo types. I'm curious if the Apollo Tooling team is collaborating with that effort and which might be considered the recommended tool to use now. Is apollo client:codegen…
Codegen is unable to figure out that only one typename is possible.
Doing something like this: Results in codegen outputting an interface that assumes a possibility of multiple types being returned which is not what happens in practice. I'd expect it to figure out that Character is the only type in this scenario. Am I missing something?