apollographql / apollographql/apollo-tooling
Operation extraction should not require a key
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 460
- PR merge metrics
- No merged PRs in 30d
Description
**Intended outcome:**
A JSON manifest of the operations and its signatures is generated when running `apollo client:extract` on apollo/client.
**Actual outcome:**
```
CLIError: Error in "Loading schema for my-apollo-service": Error: No API key found. Please set APOLLO_KEY or use --key
````
**How to reproduce the issue:**
Running `apollo client:extract` in a repository with an `apollo.config.js` file configured with no APOLLO_KEY set.
**Versions**
@apollo/client@2.33.9
Contributor guide
Research direction
Start by reproducing `apollo client:extract` in a repository with `apollo.config.js` and no `APOLLO_KEY`, then trace the CLI's schema-loading path. The change is complete when extraction produces the operations-and-signatures JSON manifest without requiring an API key.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100