apollographql / apollographql/apollo-server
Add support for human-readable times to the cacheControl directive
Open
- Dominant language
- TypeScript
- Stars
- 14k
- Forks
- 2k
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 2
Description
Integrating https://github.com/zeit/ms to allow userse to specify the maxAge of the cacheControl directive in a more human-readable way would be very nice:
```GraphQL
type User @cacheControl(maxAge: 540) {}
# compared to
type User @cacheControl(maxAge: "9m") {}
```
Contributor guide
Research direction
First inspect the cacheControl directive's maxAge handling; the issue names no file or test. Done means the directive accepts human-readable values such as "9m" alongside numeric seconds, with coverage for the documented examples.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, node.js, typescript
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100