Socket
Socket
Sign inDemoInstall

@apollo/cache-control-types

Package Overview
Dependencies
1
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @apollo/cache-control-types

TypeScript types for Apollo Server info.cacheControl


Version published
Weekly downloads
1.1M
increased by0.68%
Maintainers
4
Install size
73.8 kB
Created
Weekly downloads
 

Readme

Source

Cache Control types

This package exports various TypeScript types related to Apollo Server's cache policy calculation.

Specifically, it gives a type-safe way to get the info.cacheControl field in resolvers. Either declare your resolver's info argument to be of type GraphQLResolveInfoWithCacheControl (perhaps with the graphql-code-generator typescript-resolvers customResolveInfo option), or use the maybeCacheControlFromInfo or cacheControlFromInfo functions to extract info.cacheControl in a type-safe way.

Keywords

FAQs

Last updated on 26 Jun 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc