apollo-server icon indicating copy to clipboard operation
apollo-server copied to clipboard

Add support for human-readable times to the cacheControl directive

Open mxstbr opened this issue 5 years ago • 0 comments

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:

type User @cacheControl(maxAge: 540) {}
# compared to
type User @cacheControl(maxAge: "9m") {}

mxstbr avatar Mar 25 '19 08:03 mxstbr