Implement `@cacheControl` directive

Open
#459 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
40/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
fsharp, graphql
Domain
api, backend

Research direction

Read the linked cache-control article and inspect the repository's existing request caching and directive handling entry points; the issue names no files or tests. Add coverage for the stated behavior: use the minimum maxAge across requested fields and disable caching when any field lacks the directive.

Written by the indexing model from the issue text.

Description

Description

Requested fields influence the cache timeout for a request.
We can add @cacheControl as described here to address that

Expected behavior

Minimum maxAge is used among all present.
No chache used if any field does not have a directive.

Dominant language
F#
Stars
406
Forks
74
Avg merge
1d 8h
Merged PRs (30d)
14

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fsprojects/FSharp.Data.GraphQL

All issues in fsprojects/FSharp.Data.GraphQL

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.