stitch
stitch copied to clipboard
Cache directive
I think a kind of @cache(maxAge: '12h') directive makes a lot of sense for agogos as an API gateway, it could also respect HTTP Cache-Control headers for example.
There's some thinking to be done about how to cache it exactly, if it's allowed on fields or whole entities, etc.
Apollo has done a lot of prior work on this, should probably not re-invent the wheel completely here. https://www.apollographql.com/docs/apollo-server/performance/caching/