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

apollo codegen:generate not finding local queries

Im trying to setup apollo codegen:generate, but its giving me errors back on my client queries. Ive cleaned up the code im posting below to simplify the example. codegen command: my typeDefs i've passed to apollo client: …

thumbsup
0
message-simple
6

vscode extension: Service stats could not be loaded

I'm facing a problem with installing vscode extension in typescript project this is my apollo.config.js configs:

thumbsup
0
message-simple
0

How to reduce the classes/types created by codegen

I have one type Book. I have 2 queries (readBooks, createBook). Both queries return an array of Books. When I use codegen, I end up with 2 typed files that are very similar. Is there any more documentation on how the naming is created? I was hoping to reduce the redundancy some…

thumbsup
0
message-simple
0

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