apollographql / apollographql/apollo-tooling

DataSource Autocompletion support

Open
#1,400 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3k
Forks
460
PR merge metrics
No merged PRs in 30d

Description

I want DataSource support in the intellisense recommendations.

I'm using DataSource class everywhere to make resolvers as thin as possible and use its caching abilities.
However, I had to write almost all of my code related with database and REST APIs in classes extending DataSource, and the intellisense does not recognize functions in other DataSource classes I'm referencing through the context.

So I have to lookup the files all the time which is very uncomfortable. It even makes me want to stop using DataSource at all. Coding takes about 1.5 times longer than not using DataSource mostly due to this.

Would it be possible to make intellisense work between different datasource files? That would be so terrific.

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is named. Start by locating the TypeScript intellisense implementation and tracing how DataSource references are resolved across files; done means recommendations expose functions from referenced DataSource classes.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.