menu
Channels
# All channels
view-forward
# General
view-forward
# Apollo Angular
view-forward
# Announcements
view-forward
# Apollo Android
view-forward
# Apollo Client
view-forward
# Apollo iOS
view-forward
# Apollo Link
view-forward
# Apollo Link Rest
view-forward
# Local State
view-forward
# Apollo Platform
view-forward
# Apollo Server
view-forward
# Apollo Tooling
view-forward
# Contributing
view-forward
# Docs
view-forward
# Events
view-forward
# GraphQL Tools
view-forward
# Jobs
view-forward
# Random
view-forward
# React Apollo
view-forward
# Showcase
view-forward
# Subscriptions
view-forward
# Testing
view-forward
# Vue Apollo
view-forward
Team
Posts
Members
Info

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

thumbsup
0
message-simple
0

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鈥

thumbsup
0
message-simple
1

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鈥

thumbsup
0
message-simple
1

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鈥

thumbsup
0
message-simple
10

"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, 鈥

thumbsup
0
message-simple
0

How to configure a server project to get code intelligence in VSCode?

I've read apollo-graphql vscode plugin docs for many times, but I still don't know the way to do it. client project is okay.

thumbsup
0
message-simple
2

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: 鈥

thumbsup
0
message-simple
0

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鈥

thumbsup
0
message-simple
0

Cannot download schema with apollo, always getting 404 error

I am running this command: apollo schema:download --endpoint=http://localhost:4000/graphql schema.json I get ServerError: Response not successful: Received status code 404 鈥

thumbsup
0
message-simple
1

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?

thumbsup
0
message-simple
4